summaryrefslogtreecommitdiffhomepage
path: root/src/audio.h
diff options
context:
space:
mode:
authorSaggi Mizrahi <[email protected]>2016-12-22 03:19:49 +0200
committerSaggi Mizrahi <[email protected]>2016-12-22 03:25:42 +0200
commitc394708c438440db1b756bfe7e86a15341a43cb7 (patch)
tree970ca345f87d68fe6f284ba8ccbcee5a719aa45d /src/audio.h
parent5df10d824cc302bfdd765e1b28d293caaaeffcce (diff)
downloadraylib-c394708c438440db1b756bfe7e86a15341a43cb7.tar.gz
raylib-c394708c438440db1b756bfe7e86a15341a43cb7.zip
Change UpdateSound() to accept const void *
The function means to accept a const * so let's declare it. Will allow passing const buffers in games. Also constness is next to godliness! Signed-off-by: Saggi Mizrahi <[email protected]>
Diffstat (limited to 'src/audio.h')
-rw-r--r--src/audio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio.h b/src/audio.h
index 2b3c5933..db1bb694 100644
--- a/src/audio.h
+++ b/src/audio.h
@@ -115,7 +115,7 @@ Wave LoadWaveEx(float *data, int sampleCount, int sampleRate, int sampleSize, in
Sound LoadSound(const char *fileName); // Load sound to memory
Sound LoadSoundFromWave(Wave wave); // Load sound to memory from wave data
Sound LoadSoundFromRES(const char *rresName, int resId); // Load sound to memory from rRES file (raylib Resource)
-void UpdateSound(Sound sound, void *data, int numSamples); // Update sound buffer with new data
+void UpdateSound(Sound sound, const void *data, int numSamples); // Update sound buffer with new data
void UnloadWave(Wave wave); // Unload wave data
void UnloadSound(Sound sound); // Unload sound
void PlaySound(Sound sound); // Play a sound