SoundCard icon indicating copy to clipboard operation
SoundCard copied to clipboard

Watch for moved streams?

Open willstott101 opened this issue 2 years ago • 1 comments

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.

willstott101 avatar May 24 '22 09:05 willstott101

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.

bastibe avatar May 25 '22 13:05 bastibe