summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp
diff options
context:
space:
mode:
authorMoncef Mechri <moncef.mechri@gmail.com>2015-08-09 00:37:48 +0200
committerMoncef Mechri <moncef.mechri@gmail.com>2015-08-11 03:54:54 +0200
commita0c524774386c4543c710958bf1c607a91d6f28c (patch)
treee954b3c788d14282c00c2f16b55fe2758c62d2bc /Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp
parente27caf2e37f7321676522610aadb1b4a02b034ea (diff)
Initialize ALSA before starting the audio thread
This fixes a race condition: Before this commit, there was a race condition when starting a game: Core::EmuThread(), after having started (but not necessarily completed) the initialization of the audio thread, calls Core::SetState() which calls CCPU::EnableStepping(), which in turns calls AudioCommon::ClearAudioBuffer(). This means that SoundStream::Clear() can be called before AlsaSound::AlsaInit() has completed.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp')
0 files changed, 0 insertions, 0 deletions