diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2016-08-10 16:15:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-10 16:15:52 +0200 |
| commit | caa7ff7c2597ab42cbf2b21c4be90ae4a2345326 (patch) | |
| tree | 5b404c3f0f13cb0cd716f9e311089e7989d8d8de /Source/Core/AudioCommon/OpenALStream.cpp | |
| parent | c6a0e543a520204c1e56033ffa2511252b0dda4a (diff) | |
| parent | dca22e08eb96a401406ef7fa62c59eea1b837f7b (diff) | |
Merge pull request #4093 from leoetlino/flags-and-events
Use Common::Flag and Common::Event when possible
Diffstat (limited to 'Source/Core/AudioCommon/OpenALStream.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/OpenALStream.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/AudioCommon/OpenALStream.cpp b/Source/Core/AudioCommon/OpenALStream.cpp index 9f0ea2af57..38dc90cd4d 100644 --- a/Source/Core/AudioCommon/OpenALStream.cpp +++ b/Source/Core/AudioCommon/OpenALStream.cpp @@ -25,7 +25,7 @@ static soundtouch::SoundTouch soundTouch; // bool OpenALStream::Start() { - m_run_thread.store(true); + m_run_thread.Set(); bool bReturn = false; ALDeviceList pDeviceList; @@ -75,7 +75,7 @@ bool OpenALStream::Start() void OpenALStream::Stop() { - m_run_thread.store(false); + m_run_thread.Clear(); // kick the thread if it's waiting soundSyncEvent.Set(); @@ -207,7 +207,7 @@ void OpenALStream::SoundLoop() soundTouch.setSetting(SETTING_SEEKWINDOW_MS, 28); soundTouch.setSetting(SETTING_OVERLAP_MS, 12); - while (m_run_thread.load()) + while (m_run_thread.IsSet()) { // num_samples_to_render in this update - depends on SystemTimers::AUDIO_DMA_PERIOD. const u32 stereo_16_bit_size = 4; |
