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
commit a43f92156f
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -20,7 +20,7 @@ void ShutdownSoundStream();
std::vector<std::string> 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);