On 02/27/16 04:15, Alexandre Ratchov wrote:
A nicer approach would be to handle this in sndiod by allowing sub-devices (aka -s options) to change their device (aka -f option). The advantage of doing it in sndiod is that later this could happen dynamically (ex. unplug usb cable and programs migrate to another device).
So, if I had program A connected to snd/0 (backed by rsnd/1), and rsnd/1 was unplugged during playback, then snd/0's backing device would be changed to rsnd/0? I might be misunderstanding you, but that sounds like a really nice idea ("trunk-like", as Matej said).