diff --git a/Source/Core/AudioCommon/AudioCommon.cpp b/Source/Core/AudioCommon/AudioCommon.cpp index 18aa75d1ae..5e494b5e95 100644 --- a/Source/Core/AudioCommon/AudioCommon.cpp +++ b/Source/Core/AudioCommon/AudioCommon.cpp @@ -159,10 +159,10 @@ void UpdateSoundStream() } } -void ClearAudioBuffer(bool mute) +void SetSoundStreamRunning(bool running) { if (g_sound_stream) - g_sound_stream->Clear(mute); + g_sound_stream->Clear(running); } void SendAIBuffer(const short* samples, unsigned int num_samples) diff --git a/Source/Core/AudioCommon/AudioCommon.h b/Source/Core/AudioCommon/AudioCommon.h index 6216d9e0a2..37f1e63eb8 100644 --- a/Source/Core/AudioCommon/AudioCommon.h +++ b/Source/Core/AudioCommon/AudioCommon.h @@ -24,7 +24,7 @@ bool SupportsDPL2Decoder(const std::string& backend); bool SupportsLatencyControl(const std::string& backend); bool SupportsVolumeChanges(const std::string& backend); void UpdateSoundStream(); -void ClearAudioBuffer(bool mute); +void SetSoundStreamRunning(bool running); void SendAIBuffer(const short* samples, unsigned int num_samples); void StartAudioDump(); void StopAudioDump(); diff --git a/Source/Core/Core/HW/CPU.cpp b/Source/Core/Core/HW/CPU.cpp index 93b768f6fd..b836a9ad7e 100644 --- a/Source/Core/Core/HW/CPU.cpp +++ b/Source/Core/Core/HW/CPU.cpp @@ -147,7 +147,7 @@ static void RunAdjacentSystems(bool running) { // NOTE: We're assuming these will not try to call Break or EnableStepping. Fifo::EmulatorState(running); - AudioCommon::ClearAudioBuffer(!running); + AudioCommon::SetSoundStreamRunning(running); } void Stop()