On Sun, 28 Sep 2003, Erik de Castro Lopo wrote: > Hi all, > > I was hoping someone might be able to shine some light on the > following issue. I am currently opening an ALSA device for > record say 44.1 kHz and reading 32k frames of data at a time. > > Now with the above setup, if I want to do a meter, I can only > only update the meter every 32k frames or a little more than > once a second which makes for a very poor display. > > So, looking at /usr/include/alsa/pcm.h I find some function > definitions which seem like they are meant for metering purposes. > Unfortunalety I can't seem to find any documentation on the ALSA > site nor can I find example code showing how this stuff is > used. > > Am I missing something or does this stuff just not exist? Do > these snd_pcm_meter_* functions work? Anybody have working code > that uses these things?
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. 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