Is there a way to detect if any sound is playing (using a bash script)?
(I'm on Ubuntu 11.10 using pulseaudio.)
I plan on using it in an indicator to visually remind me sound is playing while the mute is on.
|
Is there a way to detect if any sound is playing (using a bash script)? (I'm on Ubuntu 11.10 using pulseaudio.) I plan on using it in an indicator to visually remind me sound is playing while the mute is on. |
|||
|
|
|
Using pulse-audio: You can try
Using procfs for ALSA (Caveat: these proc entries might go away in the future): This snippet runs through the pcm playback devices in ALSA proc heirarchy.
|
|||||||||
|