Re: [pulseaudio-discuss] get x11.xid

2009-05-26 Thread Lennart Poettering
On Mon, 25.05.09 11:34, Jason Taylor (killerkiwi2...@gmail.com) wrote: I've worked around this by using xlib to grab the pid of the window application and that seems to work.. No applications seem to set xid yet that I can see (banshee, rythembox, vlc, mplayer, totem etc) As mentioned

Re: [pulseaudio-discuss] get x11.xid

2009-05-26 Thread Lennart Poettering
On Wed, 27.05.09 11:01, Jason Taylor (killerkiwi2...@gmail.com) wrote: Maybe a step back I know a stream is active.. its volume is set to zero or its muted Is there anyway to tell if there is any data/sound being produced by the stream My current hack is to set the volume to 2%

Re: [pulseaudio-discuss] get x11.xid

2009-05-26 Thread Jason Taylor
So I can still detect data with pa_stream_peek.. if its zero there is no data 2009/5/27 Lennart Poettering lenn...@poettering.net On Wed, 27.05.09 11:01, Jason Taylor (killerkiwi2...@gmail.com) wrote: Maybe a step back I know a stream is active.. its volume is set to zero or its

Re: [pulseaudio-discuss] get x11.xid

2009-05-26 Thread Lennart Poettering
On Wed, 27.05.09 11:18, Jason Taylor (killerkiwi2...@gmail.com) wrote: So I can still detect data with pa_stream_peek.. if its zero there is no data But what's the point of fiddling with the volume at all in this case? Why not use PA_VOLUME_NORM? Lennart -- Lennart Poettering

Re: [pulseaudio-discuss] get x11.xid

2009-05-26 Thread Jason Taylor
Then you could hear the sound .. I dont want to be able to hear it.. just detect that there IS sound Just occured to me... I could move the stream to a null sink Cheers 2009/5/27 Lennart Poettering lenn...@poettering.net On Wed, 27.05.09 11:18, Jason Taylor (killerkiwi2...@gmail.com)

Re: [pulseaudio-discuss] get x11.xid

2009-05-26 Thread Lennart Poettering
On Wed, 27.05.09 11:27, Jason Taylor (killerkiwi2...@gmail.com) wrote: Then you could hear the sound .. I dont want to be able to hear it.. just detect that there IS sound Why would you do that? You could simply detect signal inside of your application then Lennart -- Lennart Poettering

Re: [pulseaudio-discuss] get x11.xid

2009-05-26 Thread Jason Taylor
Talk about fast response.. :) I don't control the application making the sound I'm trying to work around the flash/firefox not releasing its sink input correctly.. the only way I know of to detect if it is active is using peek to read the data in the stream. When flash/firefox is making noise

Re: [pulseaudio-discuss] get x11.xid

2009-05-26 Thread Lennart Poettering
On Wed, 27.05.09 11:45, Jason Taylor (killerkiwi2...@gmail.com) wrote: Talk about fast response.. :) I don't control the application making the sound I'm trying to work around the flash/firefox not releasing its sink input correctly.. the only way I know of to detect if it is active is

[pulseaudio-discuss] get x11.xid

2009-05-24 Thread Jason Taylor
Is there any way to reliably get an Xid for a sink_input_info or client ? I see that proplist has it listed as PA_PROP_WINDOW_X11_XIDhttp://0pointer.de/lennart/projects/pulseaudio/doxygen/proplist_8h.html#cffcfbc6e950bd892da9e93ceac66ac0 window.x11.xid But it dosn't seem to be set ie for

Re: [pulseaudio-discuss] get x11.xid

2009-05-24 Thread Lennart Poettering
On Mon, 25.05.09 09:43, Jason Taylor (killerkiwi2...@gmail.com) wrote: Is there any way to reliably get an Xid for a sink_input_info or client ? I see that proplist has it listed as

Re: [pulseaudio-discuss] get x11.xid

2009-05-24 Thread Jason Taylor
I've worked around this by using xlib to grab the pid of the window application and that seems to work.. No applications seem to set xid yet that I can see (banshee, rythembox, vlc, mplayer, totem etc) For my next trick pa_stream_peek seems to scale the data down by the sinks volume level...