summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/OpenALStream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/AudioCommon/OpenALStream.cpp')
-rw-r--r--Source/Core/AudioCommon/OpenALStream.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/Core/AudioCommon/OpenALStream.cpp b/Source/Core/AudioCommon/OpenALStream.cpp
index 191452b7f3..ed295ff18c 100644
--- a/Source/Core/AudioCommon/OpenALStream.cpp
+++ b/Source/Core/AudioCommon/OpenALStream.cpp
@@ -161,17 +161,15 @@ void OpenALStream::Update()
m_sound_sync_event.Set();
}
-void OpenALStream::Clear(bool mute)
+void OpenALStream::SetRunning(bool running)
{
- m_muted = mute;
-
- if (m_muted)
+ if (running)
{
- palSourceStop(m_source);
+ palSourcePlay(m_source);
}
else
{
- palSourcePlay(m_source);
+ palSourceStop(m_source);
}
}