Josh Lehan wrote:
Hello.  I have a question about intercepting PulseAudio-generated sound.

I'd like to make a display for the sound buffer that is currently playing in realtime, either an oscilloscope or an EQ.

Is there an API within PulseAudio to do this?

I looked at the monitor sample code for pavumeter, but it seems geared towards just getting the overall volume level of the current buffer, and not the actual sample data.

I'd love a call to "sniff" the sample data fairly late in the output process, after it has been mixed from all sources, just before it is sent to the sound hardware. Does such a thing exist?
Sure: Use the monitor interfaces. Each sink has associated with it a monitor source interface where you can listen to the stream being sent. To find it just add .monitor to the name of the source interface. The asynchronous API have calls to do this and lots of other useful tasks.

begin:vcard
fn;quoted-printable:Knut-H=C3=A5vard Aksnes
n;quoted-printable:Aksnes;Knut-H=C3=A5vard
org:Aksnes Software
adr;quoted-printable:;;Barbug=C3=A5rdsveien 35;4846 ARENDAL;;;Norway
email;internet:[EMAIL PROTECTED]
title:Siv. Ing.
tel;cell:+47  928 23 680
note;quoted-printable:Organisasjonsnr. 992557575=0D=0A=
	=0D=0A=
	Programvare relaterte konsulent tjenester: Utredning, utvikling og tilpas=
	sning.=0D=0A=
	
x-mozilla-html:TRUE
url:http://www.tirsdagsklubben.nu/~kna
version:2.1
end:vcard

_______________________________________________
pulseaudio-discuss mailing list
[email protected]
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss

Reply via email to