Merge pull request #8095 from leoetlino/audio-race

Fix a race condition when shutting down audio stream
This commit is contained in:
Connor McLaughlin
2019-05-12 15:18:36 +10:00
committed by GitHub

View File

@ -147,6 +147,8 @@ static void RunAdjacentSystems(bool running)
{
// NOTE: We're assuming these will not try to call Break or EnableStepping.
Fifo::EmulatorState(running);
// Core is responsible for shutting down the sound stream.
if (s_state != State::PowerDown)
AudioCommon::SetSoundStreamRunning(running);
}