I know it is possible to check whether the webcam is currently opened or not. But is there a similar way to check whether it is currently being recording from a microphone?
I was poking around a bit in /dev/snd/
, had a quick look at Pulseaudio functionality, and was running up and down the web. Unfortunately I couldn't find an easy solution. A general solution that does not rely on Pulseaudio would be ideal.
pactl list short | grep RUNNING
- it shows all used devices and outputs some nice parsable info about them. – Artem S. Tashkinov Apr 15 '21 at 08:51pacmd
and those options topactl
completely went unnoticed. Need to brush up on PA I guess. – creativecoding Apr 15 '21 at 09:01