Skip to content

Commit

Permalink
Merge pull request #8095 from leoetlino/audio-race
Browse files Browse the repository at this point in the history
Fix a race condition when shutting down audio stream
  • Loading branch information
stenzek committed May 12, 2019
2 parents 707266a + 7c46497 commit 0ab4171
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Core/Core/HW/CPU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ static void RunAdjacentSystems(bool running)
{
// NOTE: We're assuming these will not try to call Break or EnableStepping.
Fifo::EmulatorState(running);
AudioCommon::SetSoundStreamRunning(running);
// Core is responsible for shutting down the sound stream.
if (s_state != State::PowerDown)
AudioCommon::SetSoundStreamRunning(running);
}

void Stop()
Expand Down

0 comments on commit 0ab4171

Please sign in to comment.