Pulse Audio Window focus app

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

 



Hi.

I've written a small python app that monitors the window focus and current
pulseaudio streams and fades volume levels based on window focus and active
streams.. this allows banshee to mute on skype calls... video players to
mute music players etc...

Basically like
http://workouts.foss.in/2008/index.php/Implementing_volume-follows-focus_in_PulseAudio#Report

* *its pretty much just a toy experimenting with how it would work... (and I
use skype for work so muting the music automaticlly was my main itch to
scratch)

Code is in bzr at https://launchpad.net/eyecandy/0.2

 - I divided apps up into a couple of classes (music,video,voice) and
created some rules around that

- I also got a fade working depending on where the window is on screen
left/right fade,

- Is there a way to check if a stream is actually producing sound not just
active... flash player in ff does not seem to play nice??

Cheers

Jason Taylor


-- 
"A little rudeness and disrespect can elevate a meaningless interaction to a
battle of wills and add drama to an otherwise dull day." - Calven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20090130/9ca5c56f/attachment.htm>


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux