All of lore.kernel.org
 help / color / mirror / Atom feed
From: Abramo Bagnara <abramo.bagnara@libero.it>
To: Jaroslav Kysela <perex@suse.cz>
Cc: ALSA development <alsa-devel@alsa-project.org>
Subject: Re: New PCM API extension
Date: Mon, 24 Feb 2003 20:51:12 +0100	[thread overview]
Message-ID: <3E5A77B0.117F229A@libero.it> (raw)
In-Reply-To: Pine.LNX.4.44.0302241605410.1142-100000@pnote.perex-int.cz

Jaroslav Kysela wrote:
> 
> On Mon, 24 Feb 2003, Abramo Bagnara wrote:
> 
> > Jaroslav Kysela wrote:
> > >
> > > I think that I have one present problem. It was not possible to write,
> > > something like the dmix plugin does (in the server/client model): Transfer
> > > data to different areas in the ring buffer. Imagine that client1 wants to
> > > write data at the end of the ring buffer (assume that server don't change
> > > the r/w pointer). Then client2 comes with some data to be placed at the
> > > start of the buffer later (server rewinds the stream position). Then
> > > hardware processed a period and client1 wants to continue (server forwards
> > > the stream position at the end of the ring buffer).
> > >
> > > I can imagine more examples where "later" samples might be wanted to be
> > > processed before "quick" ones.
> >
> > Your examples appears a little confused at my eyes, but if I've
> > understood correctly don't you think this might be solved by
> > snd_pcm_rewind done by server?
> 
> And you'll need to commit the same samples later which seems to me quite
> ineffective (extra copy + processing (if required)).

Yes, this is definitely true.

> I probably don't explain clearly my point:
> 
> We have data for time T, T+1 and T+2. The application might want to write
> data in this order: T+1, T, T+2. While we going back to T position, we can
> use snd_pcm_rewind(), but going to T+2 (without changing T+1 data)
> requires writting (or commiting) of same samples now. That's exactly what
> I want to eliminate.

Now I understand perfectly.

When in past I analyzed this I was unable to imagine a real scenario
where this might happens.

To tell you the truth now too I've some difficulties... can you help me?

-- 
Abramo Bagnara                       mailto:abramo.bagnara@libero.it

Opera Unica                          Phone: +39.546.656023
Via Emilia Interna, 140
48014 Castel Bolognese (RA) - Italy


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

  reply	other threads:[~2003-02-24 19:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-22 17:56 New PCM API extension Jaroslav Kysela
2003-02-22 21:11 ` Lynx Studio LynxTwo/L22 Driver Robert Robinson
2003-06-22  0:07   ` D. Sen
2003-06-22  0:07     ` D. Sen
     [not found]   ` <20030621170718-166800041>
2003-06-22 22:47     ` Giuliano Pochini
     [not found]     ` <20030622134708-168400041>
2003-06-23 10:28       ` D. Sen
2003-06-23 10:28         ` D. Sen
2003-02-22 21:55 ` New PCM API extension Abramo Bagnara
2003-02-23 18:46   ` Jaroslav Kysela
2003-02-23 19:24     ` Abramo Bagnara
2003-02-23 21:01       ` Paul Davis
2003-02-23 21:41       ` Jaroslav Kysela
2003-02-23 23:15         ` Abramo Bagnara
2003-02-24 15:20           ` Jaroslav Kysela
2003-02-24 19:51             ` Abramo Bagnara [this message]
2003-02-27 12:32 ` Kai Vehmanen
2003-02-27 14:22   ` Jaroslav Kysela

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E5A77B0.117F229A@libero.it \
    --to=abramo.bagnara@libero.it \
    --cc=alsa-devel@alsa-project.org \
    --cc=perex@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.