diff options
| author | Saggi Mizrahi <[email protected]> | 2016-12-22 03:19:49 +0200 |
|---|---|---|
| committer | Saggi Mizrahi <[email protected]> | 2016-12-22 03:25:42 +0200 |
| commit | c394708c438440db1b756bfe7e86a15341a43cb7 (patch) | |
| tree | 970ca345f87d68fe6f284ba8ccbcee5a719aa45d /src/audio.c | |
| parent | 5df10d824cc302bfdd765e1b28d293caaaeffcce (diff) | |
| download | raylib-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.c')
| -rw-r--r-- | src/audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio.c b/src/audio.c index a9c07c39..aa89de02 100644 --- a/src/audio.c +++ b/src/audio.c @@ -342,7 +342,7 @@ void UnloadSound(Sound sound) // Update sound buffer with new data // NOTE: data must match sound.format -void UpdateSound(Sound sound, void *data, int numSamples) +void UpdateSound(Sound sound, const void *data, int numSamples) { ALint sampleRate, sampleSize, channels; alGetBufferi(sound.buffer, AL_FREQUENCY, &sampleRate); |
