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

@ -78,9 +78,9 @@ void AlsaSound::SoundLoop()
m_thread_status.store(ALSAThreadStatus::STOPPED);
}
void AlsaSound::Clear(bool muted)
void AlsaSound::SetRunning(bool running)
{
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
}