diff options
author | Andrey Nazarov <skuller@skuller.net> | 2010-05-09 18:13:04 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2010-05-09 18:13:04 +0000 |
commit | c877967be5689e19ae50ef7e241535d0e7b83a59 (patch) | |
tree | 2fde7c255d05d94538413110a48c3120cf7395d7 /source/snd_al.c | |
parent | 633c832e43c42bce0a685a93acfc3937c84ed6bb (diff) |
Put S_StopAllSounds back into S_Init to prevent crash due to uninitialized playsound list.
Enable setting AL_MIN_GAIN for listener entity.
Diffstat (limited to 'source/snd_al.c')
-rw-r--r-- | source/snd_al.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/snd_al.c b/source/snd_al.c index 30b5143..78be0d1 100644 --- a/source/snd_al.c +++ b/source/snd_al.c @@ -134,7 +134,7 @@ void AL_PlayChannel( channel_t *ch ) { //qalSourcei( ch->srcnum, AL_LOOPING, sc->loopstart == -1 ? AL_FALSE : AL_TRUE ); qalSourcei( ch->srcnum, AL_LOOPING, ch->autosound ? AL_TRUE : AL_FALSE ); qalSourcef( ch->srcnum, AL_GAIN, ch->master_vol ); -#if 0 +#if 1 // anything coming from the view entity will always be full volume if( ch->entnum == -1 || ch->entnum == listener_entnum ) { qalSourcef( ch->srcnum, AL_MIN_GAIN, 1 ); |