From 7bcdd1a46a2e0964c0ea155d840cff1dbf573916 Mon Sep 17 00:00:00 2001 From: Michael M Date: Sat, 21 Oct 2017 12:34:51 -0700 Subject: SoundStream: remove unused m_muted and IsMuted --- Source/Core/AudioCommon/OpenALStream.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Source/Core/AudioCommon/OpenALStream.cpp') diff --git a/Source/Core/AudioCommon/OpenALStream.cpp b/Source/Core/AudioCommon/OpenALStream.cpp index 191452b7f3..ed834fdac9 100644 --- a/Source/Core/AudioCommon/OpenALStream.cpp +++ b/Source/Core/AudioCommon/OpenALStream.cpp @@ -163,9 +163,7 @@ void OpenALStream::Update() void OpenALStream::Clear(bool mute) { - m_muted = mute; - - if (m_muted) + if (mute) { palSourceStop(m_source); } -- cgit v1.2.3 From b031d3316c64718b383e6339c4a6c12176bff4cb Mon Sep 17 00:00:00 2001 From: Michael M Date: Sat, 21 Oct 2017 12:37:39 -0700 Subject: SoundStream: rename Clear(mute) to SetRunning(running) --- Source/Core/AudioCommon/OpenALStream.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/Core/AudioCommon/OpenALStream.cpp') diff --git a/Source/Core/AudioCommon/OpenALStream.cpp b/Source/Core/AudioCommon/OpenALStream.cpp index ed834fdac9..ed295ff18c 100644 --- a/Source/Core/AudioCommon/OpenALStream.cpp +++ b/Source/Core/AudioCommon/OpenALStream.cpp @@ -161,15 +161,15 @@ void OpenALStream::Update() m_sound_sync_event.Set(); } -void OpenALStream::Clear(bool mute) +void OpenALStream::SetRunning(bool running) { - if (mute) + if (running) { - palSourceStop(m_source); + palSourcePlay(m_source); } else { - palSourcePlay(m_source); + palSourceStop(m_source); } } -- cgit v1.2.3