Merge branch 'spice2x' into spice22x
This commit is contained in:
@@ -967,7 +967,15 @@ HRESULT AsioBackend::on_stop() noexcept {
|
||||
return AUDCLNT_E_NOT_INITIALIZED;
|
||||
}
|
||||
|
||||
if (hooks::audio::ASIO_FORCE_UNLOAD_ON_STOP) {
|
||||
log_misc("audio::asio", "AsioBackend::on_stop - using ASIO_FORCE_UNLOAD_ON_STOP workaround");
|
||||
}
|
||||
|
||||
auto result = this->run_on_asio_thread([this]() {
|
||||
if (hooks::audio::ASIO_FORCE_UNLOAD_ON_STOP) {
|
||||
this->unload_driver();
|
||||
return (AsioError)ASE_OK;
|
||||
}
|
||||
return this->asio_driver->stop();
|
||||
});
|
||||
if (result != ASE_OK) {
|
||||
|
||||
Reference in New Issue
Block a user