[LAU] How can I detect whether JACK or ALSA clients are using an audio gear?

From: crocket <crockabiscuit@email-addr-hidden>
Date: Fri Mar 29 2019 - 01:25:11 EET

My Raspberry Pi can turn audio gears on and off via relays.
When my desktop starts using its speakers, I want it to tell Raspberry Pi
to turn on the speakers via a relay.
When nothing has used the speakers for a minute, I want it to tell
Raspberry Pi to turn off the speakers.

I can do the same for a USB microphone. A USB microphone can be turned on
and off by uhubctl.

Does ALSA have a callback API that I hook into? Does jack have it?

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
https://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Fri Mar 29 04:15:02 2019

This archive was generated by hypermail 2.1.8 : Fri Mar 29 2019 - 04:15:02 EET