SoundCard
SoundCard copied to clipboard
Watch for moved streams?
Pulseaudio (and presumably other sound servers) will move streams automatically when a soundcard is disconnected.
I'd like to be (at least) able to use pa_stream_get_device_name
to verify which device I'm recording, or probably better yet pa_stream_set_moved_callback
should result in an exception when iterating?
Would you consider a PR in either of those directions (probably just for pulse as a PoC)? I could possibly test on Windows too, but I may not find the time.
I'd absolutely be interested in that! It should be optional, however, since some applications rely on audio coming from a specific sound card, and any change in that sound card should be treated as an error.