diff --git a/src/client/sound/header/local.h b/src/client/sound/header/local.h index a8ded2a6..cde7038f 100644 --- a/src/client/sound/header/local.h +++ b/src/client/sound/header/local.h @@ -276,7 +276,7 @@ void SDL_Update(void); * playback */ void SDL_RawSamples(int samples, int rate, int width, - int channels, byte *data, float volume); + int channels, const byte *data, float volume); /* * Spartializes a sample @@ -348,7 +348,7 @@ void AL_Update(void); * Plays raw samples */ void AL_RawSamples(int samples, int rate, int width, - int channels, byte *data, float volume); + int channels, const byte *data, float volume); /* * Unqueues any raw samples diff --git a/src/client/sound/header/sound.h b/src/client/sound/header/sound.h index 88b32af6..f310045c 100644 --- a/src/client/sound/header/sound.h +++ b/src/client/sound/header/sound.h @@ -42,7 +42,7 @@ void S_StartSound(vec3_t origin, int entnum, int entchannel, void S_StartLocalSound(char *sound); void S_RawSamples(int samples, int rate, int width, int channels, - byte *data, float volume); + const byte *data, float volume); void S_StopAllSounds(void); void S_Update(vec3_t origin, vec3_t forward, vec3_t right, vec3_t up); void S_Activate(qboolean active); diff --git a/src/client/sound/openal.c b/src/client/sound/openal.c index 1569a8bc..014d9390 100644 --- a/src/client/sound/openal.c +++ b/src/client/sound/openal.c @@ -954,7 +954,7 @@ AL_IssuePlaysounds(void) */ void AL_RawSamples(int samples, int rate, int width, int channels, - byte *data, float volume) + const byte *data, float volume) { ALuint buffer; ALuint format = 0; diff --git a/src/client/sound/sdl.c b/src/client/sound/sdl.c index c6ad1f73..e5256a97 100644 --- a/src/client/sound/sdl.c +++ b/src/client/sound/sdl.c @@ -1000,7 +1000,7 @@ SDL_Cache(sfx_t *sfx, wavinfo_t *info, byte *data, short volume, * and cinematic playback. */ void -SDL_RawSamples(int samples, int rate, int width, int channels, byte *data, float volume) +SDL_RawSamples(int samples, int rate, int width, int channels, const byte *data, float volume) { float scale; int dst; diff --git a/src/client/sound/sound.c b/src/client/sound/sound.c index 513c5bfa..a896fa7d 100644 --- a/src/client/sound/sound.c +++ b/src/client/sound/sound.c @@ -1379,7 +1379,7 @@ S_BuildSoundList(int *sounds) */ void S_RawSamples(int samples, int rate, int width, - int channels, byte *data, float volume) + int channels, const byte *data, float volume) { if (sound_started == SS_NOT) {