Merge pull request #4075 from lioncash/const

AudioCommon: const correctness
This commit is contained in:
Pierre Bourdon
2016-08-01 03:07:29 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ void ClearAudioBuffer(bool mute)
g_sound_stream->Clear(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) if (!g_sound_stream)
return; return;

View File

@ -20,7 +20,7 @@ void ShutdownSoundStream();
std::vector<std::string> GetSoundBackends(); std::vector<std::string> GetSoundBackends();
void UpdateSoundStream(); void UpdateSoundStream();
void ClearAudioBuffer(bool mute); void ClearAudioBuffer(bool mute);
void SendAIBuffer(short* samples, unsigned int num_samples); void SendAIBuffer(const short* samples, unsigned int num_samples);
void StartAudioDump(); void StartAudioDump();
void StopAudioDump(); void StopAudioDump();
void IncreaseVolume(unsigned short offset); void IncreaseVolume(unsigned short offset);