From 128d762aeabb1cc56d19cb603ff6ff0bb0f478ca Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 31 Jul 2016 19:14:20 -0400 Subject: [PATCH] AudioCommon: const correctness --- Source/Core/AudioCommon/AudioCommon.cpp | 2 +- Source/Core/AudioCommon/AudioCommon.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);