diff options
| author | Michael M <mchtly@gmail.com> | 2017-10-21 12:37:39 -0700 |
|---|---|---|
| committer | Michael M <mchtly@gmail.com> | 2017-10-21 16:28:04 -0700 |
| commit | b031d3316c64718b383e6339c4a6c12176bff4cb (patch) | |
| tree | 3c4b0e19c9539220c4850ce6e8e63107edf138a9 /Source/Core/AudioCommon/XAudio2Stream.cpp | |
| parent | d6985fc3e89a6d79a1476c6a0ed323c7b50791fe (diff) | |
SoundStream: rename Clear(mute) to SetRunning(running)
Diffstat (limited to 'Source/Core/AudioCommon/XAudio2Stream.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/XAudio2Stream.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/AudioCommon/XAudio2Stream.cpp b/Source/Core/AudioCommon/XAudio2Stream.cpp index 41214f181f..b87a0e0a06 100644 --- a/Source/Core/AudioCommon/XAudio2Stream.cpp +++ b/Source/Core/AudioCommon/XAudio2Stream.cpp @@ -210,14 +210,14 @@ void XAudio2::SetVolume(int volume) m_mastering_voice->SetVolume(m_volume); } -void XAudio2::Clear(bool mute) +void XAudio2::SetRunning(bool running) { if (m_voice_context) { - if (mute) - m_voice_context->Stop(); - else + if (running) m_voice_context->Play(); + else + m_voice_context->Stop(); } } |
