Lines Matching refs:chan
676 channel_t *chan; in S_UpdateAmbientSounds() local
695 chan = &channels[ambient_channel]; in S_UpdateAmbientSounds()
696 chan->sfx = ambient_sfx[ambient_channel]; in S_UpdateAmbientSounds()
703 if (chan->master_vol < vol) in S_UpdateAmbientSounds()
705 chan->master_vol += (int) (host_frametime * ambient_fade.value); in S_UpdateAmbientSounds()
706 if (chan->master_vol > vol) in S_UpdateAmbientSounds()
707 chan->master_vol = (int) vol; in S_UpdateAmbientSounds()
709 else if (chan->master_vol > vol) in S_UpdateAmbientSounds()
711 chan->master_vol -= (int) (host_frametime * ambient_fade.value); in S_UpdateAmbientSounds()
712 if (chan->master_vol < vol) in S_UpdateAmbientSounds()
713 chan->master_vol = (int) vol; in S_UpdateAmbientSounds()
716 chan->leftvol = chan->rightvol = chan->master_vol; in S_UpdateAmbientSounds()