diff options
| author | Connor McLaughlin <stenzek@gmail.com> | 2019-10-10 00:27:31 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-10 00:27:31 +1000 |
| commit | 6dbb5cc4eab19733cb78d809ba7ca597f80a327b (patch) | |
| tree | 44a309ccce71189e4d163b80e103e1c110491898 /Source | |
| parent | 6e613f4f82085edac10587562849c79ec5d342a0 (diff) | |
| parent | 7c286064b85edeb9a53916fbd2add76ef60bc5a5 (diff) | |
Merge pull request #8397 from stenzek/fifoci-fix
Fix FifoCI
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/AudioCommon/AlsaSoundStream.cpp | 3 | ||||
| -rw-r--r-- | Source/Core/AudioCommon/AudioCommon.cpp | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/AudioCommon/AlsaSoundStream.cpp b/Source/Core/AudioCommon/AlsaSoundStream.cpp index d249640d1b..44f47400d9 100644 --- a/Source/Core/AudioCommon/AlsaSoundStream.cpp +++ b/Source/Core/AudioCommon/AlsaSoundStream.cpp @@ -25,7 +25,8 @@ AlsaSound::~AlsaSound() // Give the opportunity to the audio thread // to realize we are stopping the emulation cv.notify_one(); - thread.join(); + if (thread.joinable()) + thread.join(); } bool AlsaSound::Init() diff --git a/Source/Core/AudioCommon/AudioCommon.cpp b/Source/Core/AudioCommon/AudioCommon.cpp index dd9986077e..a8f09c2688 100644 --- a/Source/Core/AudioCommon/AudioCommon.cpp +++ b/Source/Core/AudioCommon/AudioCommon.cpp @@ -64,6 +64,7 @@ void InitSoundStream() WARN_LOG(AUDIO, "Could not initialize backend %s, using %s instead.", backend.c_str(), BACKEND_NULLSOUND); g_sound_stream = std::make_unique<NullSound>(); + g_sound_stream->Init(); } UpdateSoundStream(); |
