0
I am building a audio streamer based on linux for high quality audio. I have several applications that i want to be able to have acces to the audio device at the same time. (like shairport-sync, roon and music player daemon)
I have found the dmix plugin for ALSA which makes it possible to have two stream of audio mixed into one audio device. However, dmix requires me to set the sample rate when defining the dmix device and i need the sample rate to be variable depending on the sample rate that is being outputted from the source.
Is there a plugin that allows for switching between inputs? Or am I missing something in dmix?
2PulseAudio does this automatically, based on the first stream's sample rate. – CL. – 2018-07-31T10:17:03.217
1I'd second using PulseAudio for resampling/transport stuff - much easier to set up. – dirkt – 2018-07-31T11:17:51.080