On Mon, 29 Sep 2003, Erik de Castro Lopo wrote:

> On Mon, 29 Sep 2003 10:37:56 +0200 (CEST)
> Jaroslav Kysela <[EMAIL PROTECTED]> wrote:
>
> > The examples are in alsa-lib/src/pcm/scopes directory, but don't expect
> > a better response times, because the meter plugin is also activated
> > when an application reads or writes data to device.
>
> Does that mean that the only way to get better meter response is to
> read smaller blocks?

Not really. The plugins are activated when snd_pcm_avail_update() is
called, so if you write own meter plugin and call snd_pcm_avail_update
more frequently in the read thread, you may get better results. But I
think that it might be better to read small chunks, because samples are
already processed when snd_pcm_avail_update() is called so there is no
point to delay the processing in application. In other words, it's better
to do additional (large) buffering in application to avoid xruns.

                                                Jaroslav

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to