mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Merge pull request #8095 from leoetlino/audio-race
Fix a race condition when shutting down audio stream
This commit is contained in:
@ -147,7 +147,9 @@ static void RunAdjacentSystems(bool running)
|
|||||||
{
|
{
|
||||||
// NOTE: We're assuming these will not try to call Break or EnableStepping.
|
// NOTE: We're assuming these will not try to call Break or EnableStepping.
|
||||||
Fifo::EmulatorState(running);
|
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()
|
void Stop()
|
||||||
|
Reference in New Issue
Block a user