mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 16:18:58 +00:00
Merge pull request #8095 from leoetlino/audio-race
Fix a race condition when shutting down audio stream
This commit is contained in:
commit
0ab41717a4
1 changed files with 3 additions and 1 deletions
|
@ -147,6 +147,8 @@ 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);
|
||||||
|
// Core is responsible for shutting down the sound stream.
|
||||||
|
if (s_state != State::PowerDown)
|
||||||
AudioCommon::SetSoundStreamRunning(running);
|
AudioCommon::SetSoundStreamRunning(running);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue