diff --git a/Source/Core/AudioCommon/AudioCommon.cpp b/Source/Core/AudioCommon/AudioCommon.cpp index 41ebe4e04e..dd0b31b916 100644 --- a/Source/Core/AudioCommon/AudioCommon.cpp +++ b/Source/Core/AudioCommon/AudioCommon.cpp @@ -132,7 +132,7 @@ void ClearAudioBuffer(bool mute) g_sound_stream->Clear(mute); } -void SendAIBuffer(short* samples, unsigned int num_samples) +void SendAIBuffer(const short* samples, unsigned int num_samples) { if (!g_sound_stream) return; diff --git a/Source/Core/AudioCommon/AudioCommon.h b/Source/Core/AudioCommon/AudioCommon.h index f7eda7be82..9b70a3ce4b 100644 --- a/Source/Core/AudioCommon/AudioCommon.h +++ b/Source/Core/AudioCommon/AudioCommon.h @@ -20,7 +20,7 @@ void ShutdownSoundStream(); std::vector GetSoundBackends(); void UpdateSoundStream(); void ClearAudioBuffer(bool mute); -void SendAIBuffer(short* samples, unsigned int num_samples); +void SendAIBuffer(const short* samples, unsigned int num_samples); void StartAudioDump(); void StopAudioDump(); void IncreaseVolume(unsigned short offset);