Re: Function providing current output level (like a VU meter)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ray wrote:
> Am 2015-03-03 10:47, schrieb Clemens Ladisch:
>> Ray wrote:
>>> is there some ALSA function which I can use to get the current music
>>> output level from the soundcard output?
>>
>> No; be default, samples are written by the application directly into the
>> DMA buffer, and there is no opportunity for anybode else to listen in.
>
> Ok, this puts an end to my efforts in userland, I suppose. How about kernel-land then?

The DMA buffer is read directly by the hardware.

You would have to route the audio data through some other software (like
PulseAudio or Jack), but these are components on top of ALSA, and are
not guaranteed to be use everwhere.  That said, PulseAudio probably does
what you want.


Regards,
Clemens

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user




[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux