diff options
| author | Leo Lam <leolino.lam@gmail.com> | 2017-10-22 15:38:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-22 15:38:34 +0200 |
| commit | a596424dc2c9230c1ebed813bd459a1a405b565d (patch) | |
| tree | 7b5dc83c1844b6655eea3c87c2c69f0c06def7fc /Source/Core/AudioCommon/AlsaSoundStream.cpp | |
| parent | d57d7b74d7ee056f4a5b869020b12481895e9832 (diff) | |
| parent | b031d3316c64718b383e6339c4a6c12176bff4cb (diff) | |
Merge pull request #6133 from ligfx/soundstreamsetrunning
AudioCommon: rename ClearAudioBuffer(mute) to SetSoundStreamRunning(running)
Diffstat (limited to 'Source/Core/AudioCommon/AlsaSoundStream.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/AlsaSoundStream.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/AudioCommon/AlsaSoundStream.cpp b/Source/Core/AudioCommon/AlsaSoundStream.cpp index a2842b5fec..6345b7646b 100644 --- a/Source/Core/AudioCommon/AlsaSoundStream.cpp +++ b/Source/Core/AudioCommon/AlsaSoundStream.cpp @@ -78,10 +78,9 @@ void AlsaSound::SoundLoop() m_thread_status.store(ALSAThreadStatus::STOPPED); } -void AlsaSound::Clear(bool muted) +void AlsaSound::SetRunning(bool running) { - m_muted = muted; - 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 } |
