diff --git a/Source/Core/AudioCommon/AudioCommon.cpp b/Source/Core/AudioCommon/AudioCommon.cpp index 6332dc8844..51b4347dee 100644 --- a/Source/Core/AudioCommon/AudioCommon.cpp +++ b/Source/Core/AudioCommon/AudioCommon.cpp @@ -180,7 +180,7 @@ void StartSoundStream(Core::System& system) if (system.IsSoundStreamRunning()) return; - system.SetSoundStreamRunning(true); + system.StartSoundStream(); if (sound_stream->SetRunning(true)) return; @@ -198,7 +198,7 @@ void StopSoundStream(Core::System& system) if (!system.IsSoundStreamRunning()) return; - system.SetSoundStreamRunning(false); + system.StopSoundStream(); if (sound_stream->SetRunning(false)) return; diff --git a/Source/Core/Core/System.cpp b/Source/Core/Core/System.cpp index 695d5861fc..f692208c8d 100644 --- a/Source/Core/Core/System.cpp +++ b/Source/Core/Core/System.cpp @@ -128,9 +128,14 @@ bool System::IsSoundStreamRunning() const return m_impl->m_sound_stream_running; } -void System::SetSoundStreamRunning(bool running) +void System::StartSoundStream() { - m_impl->m_sound_stream_running = running; + m_impl->m_sound_stream_running = true; +} + +void System::StopSoundStream() +{ + m_impl->m_sound_stream_running = false; } bool System::IsAudioDumpStarted() const diff --git a/Source/Core/Core/System.h b/Source/Core/Core/System.h index 9ec8391ff0..ae17d03b91 100644 --- a/Source/Core/Core/System.h +++ b/Source/Core/Core/System.h @@ -151,7 +151,8 @@ public: SoundStream* GetSoundStream() const; void SetSoundStream(std::unique_ptr sound_stream); bool IsSoundStreamRunning() const; - void SetSoundStreamRunning(bool running); + void StartSoundStream(); + void StopSoundStream(); bool IsAudioDumpStarted() const; void SetAudioDumpStarted(bool started);