diff options
-rw-r--r-- | source/snd_al.c | 2 | ||||
-rw-r--r-- | source/snd_main.c | 5 |
2 files changed, 4 insertions, 3 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 ); diff --git a/source/snd_main.c b/source/snd_main.c index 1c60fc4..9c38b13 100644 --- a/source/snd_main.c +++ b/source/snd_main.c @@ -204,8 +204,6 @@ void S_Init( void ) { } } - S_ClearBuffer(); - Com_Printf( "sound sampling rate: %i\n", dma.speed ); s_started = SS_DMA; } @@ -218,6 +216,9 @@ void S_Init( void ) { Cmd_Register( c_sound ); + // init playsound list + S_StopAllSounds(); + S_InitScaletable(); num_sfx = 0; |