Still a draft because only output devices are considered for now,
there's some hardcoding for restoring the original card/dev of the stream,
and reconfiguring after routing change is not done, mainly because it would require non-const hw_stream.
But it's a start since switching between speaker and headphone works after certain events
(eg. screen off/on or restarting the music player).
Following discussion in #16 , here's my current work on supporting eg.
Still a draft because only output devices are considered for now, there's some hardcoding for restoring the original card/dev of the stream, and reconfiguring after routing change is not done, mainly because it would require non-const hw_stream.
But it's a start since switching between speaker and headphone works after certain events (eg. screen off/on or restarting the music player).