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/AlsaSoundStream.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'Source/Core/AudioCommon/AlsaSoundStream.cpp') diff --git a/Source/Core/AudioCommon/AlsaSoundStream.cpp b/Source/Core/AudioCommon/AlsaSoundStream.cpp index a2842b5fec..2ad7c86a6e 100644 --- a/Source/Core/AudioCommon/AlsaSoundStream.cpp +++ b/Source/Core/AudioCommon/AlsaSoundStream.cpp @@ -80,7 +80,6 @@ void AlsaSound::SoundLoop() void AlsaSound::Clear(bool muted) { - m_muted = muted; m_thread_status.store(muted ? ALSAThreadStatus::PAUSED : ALSAThreadStatus::RUNNING); cv.notify_one(); // Notify thread that status has changed } -- 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/AlsaSoundStream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/AudioCommon/AlsaSoundStream.cpp') diff --git a/Source/Core/AudioCommon/AlsaSoundStream.cpp b/Source/Core/AudioCommon/AlsaSoundStream.cpp index 2ad7c86a6e..6345b7646b 100644 --- a/Source/Core/AudioCommon/AlsaSoundStream.cpp +++ b/Source/Core/AudioCommon/AlsaSoundStream.cpp @@ -78,9 +78,9 @@ void AlsaSound::SoundLoop() m_thread_status.store(ALSAThreadStatus::STOPPED); } -void AlsaSound::Clear(bool muted) +void AlsaSound::SetRunning(bool running) { - m_thread_status.store(muted ? ALSAThreadStatus::PAUSED : ALSAThreadStatus::RUNNING); + m_thread_status.store(running ? ALSAThreadStatus::RUNNING : ALSAThreadStatus::PAUSED); cv.notify_one(); // Notify thread that status has changed } -- cgit v1.2.3