summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/AOSoundStream.cpp
diff options
context:
space:
mode:
authorMarkus Wick <degasus@users.noreply.github.com>2016-08-10 16:15:52 +0200
committerGitHub <noreply@github.com>2016-08-10 16:15:52 +0200
commitcaa7ff7c2597ab42cbf2b21c4be90ae4a2345326 (patch)
tree5b404c3f0f13cb0cd716f9e311089e7989d8d8de /Source/Core/AudioCommon/AOSoundStream.cpp
parentc6a0e543a520204c1e56033ffa2511252b0dda4a (diff)
parentdca22e08eb96a401406ef7fa62c59eea1b837f7b (diff)
Merge pull request #4093 from leoetlino/flags-and-events
Use Common::Flag and Common::Event when possible
Diffstat (limited to 'Source/Core/AudioCommon/AOSoundStream.cpp')
-rw-r--r--Source/Core/AudioCommon/AOSoundStream.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/AudioCommon/AOSoundStream.cpp b/Source/Core/AudioCommon/AOSoundStream.cpp
index 6dc1219e88..93f1759785 100644
--- a/Source/Core/AudioCommon/AOSoundStream.cpp
+++ b/Source/Core/AudioCommon/AOSoundStream.cpp
@@ -34,7 +34,7 @@ void AOSound::SoundLoop()
buf_size = format.bits / 8 * format.channels * format.rate;
- while (m_run_thread.load())
+ while (m_run_thread.IsSet())
{
m_mixer->Mix(realtimeBuffer, numBytesToRender >> 2);
@@ -49,7 +49,7 @@ void AOSound::SoundLoop()
bool AOSound::Start()
{
- m_run_thread.store(true);
+ m_run_thread.Set();
memset(realtimeBuffer, 0, sizeof(realtimeBuffer));
thread = std::thread(&AOSound::SoundLoop, this);
@@ -63,7 +63,7 @@ void AOSound::Update()
void AOSound::Stop()
{
- m_run_thread.store(false);
+ m_run_thread.Clear();
soundSyncEvent.Set();
{