SoundStream: rename Clear(mute) to SetRunning(running)

This commit is contained in:
Michael M
2017-10-21 12:37:39 -07:00
parent d6985fc3e8
commit b031d3316c
10 changed files with 20 additions and 20 deletions

View File

@ -198,14 +198,14 @@ void XAudio2_7::SetVolume(int volume)
m_mastering_voice->SetVolume(m_volume);
}
void XAudio2_7::Clear(bool mute)
void XAudio2_7::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();
}
}