Andersama / obs-asio

ASIO plugin for OBS-Studio
GNU General Public License v3.0
684 stars 43 forks source link

Re-plugging the device while OBS is launched #83

Closed MisterPiBody closed 3 years ago

MisterPiBody commented 3 years ago

Using Helix LT with method V3 Everything works fine, but when I unplug and plug Helix back while OBS is still on, sound is not transferring anymore. It doesn't matter what settings i try to change in properties, switching ASIO types etc, no sound comes through. Only OBS restart works, not even removing this plugin from sources and adding it back.

Here's log 2021-04-12 16-45-21.txt

Andersama commented 3 years ago

I don't remember ever making the plugin hot-pluggable. Don't do this, the restart works because the devices are relisted and initialized properly, by unplugging you're definitely going to create problems. In the meantime try version 2. If you can't hot-plug in both I might revisit this.

MisterPiBody commented 3 years ago

I'll take a look at look at V2 if something. Just thought about this in case something might happen during the stream like unexpected device unplugging by an accident for example. Thanks for the reply!

Andersama commented 3 years ago

The only other solution but I doubt it could be automatic would be to add a button to essentially restart the device as though from scratch. TLDR: just in general, don't unplug devices when they're in use. Think of it like a hard-drive or ssd, they generally do not appreciate being disconnected.

pkviet commented 3 years ago

I tried hotplugging my asio device in Reaper and it did not work. Given such a reputable DAW doesn't support hotplugging, it seems unreasonable to expect us to support such a feature. Sorry. Closing this.