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/OpenALStream.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/OpenALStream.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/OpenALStream.cpp | 10 |
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); } } |
