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/XAudio2Stream.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/XAudio2Stream.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/XAudio2Stream.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/Core/AudioCommon/XAudio2Stream.cpp b/Source/Core/AudioCommon/XAudio2Stream.cpp index 827dfdf887..b87a0e0a06 100644 --- a/Source/Core/AudioCommon/XAudio2Stream.cpp +++ b/Source/Core/AudioCommon/XAudio2Stream.cpp @@ -210,16 +210,14 @@ void XAudio2::SetVolume(int volume) m_mastering_voice->SetVolume(m_volume); } -void XAudio2::Clear(bool mute) +void XAudio2::SetRunning(bool running) { - m_muted = mute; - if (m_voice_context) { - if (m_muted) - m_voice_context->Stop(); - else + if (running) m_voice_context->Play(); + else + m_voice_context->Stop(); } } |
