mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 22:34:54 +00:00
commit
6dbb5cc4ea
2 changed files with 3 additions and 1 deletions
|
@ -25,6 +25,7 @@ AlsaSound::~AlsaSound()
|
||||||
// Give the opportunity to the audio thread
|
// Give the opportunity to the audio thread
|
||||||
// to realize we are stopping the emulation
|
// to realize we are stopping the emulation
|
||||||
cv.notify_one();
|
cv.notify_one();
|
||||||
|
if (thread.joinable())
|
||||||
thread.join();
|
thread.join();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,7 @@ void InitSoundStream()
|
||||||
WARN_LOG(AUDIO, "Could not initialize backend %s, using %s instead.", backend.c_str(),
|
WARN_LOG(AUDIO, "Could not initialize backend %s, using %s instead.", backend.c_str(),
|
||||||
BACKEND_NULLSOUND);
|
BACKEND_NULLSOUND);
|
||||||
g_sound_stream = std::make_unique<NullSound>();
|
g_sound_stream = std::make_unique<NullSound>();
|
||||||
|
g_sound_stream->Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateSoundStream();
|
UpdateSoundStream();
|
||||||
|
|
Loading…
Add table
Reference in a new issue