diff options
author | Chris Robinson <[email protected]> | 2012-02-10 00:29:47 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-02-10 00:29:47 -0800 |
commit | 61be01efc197fd2719ad2b3df0cb408d50c7b1ef (patch) | |
tree | 9070ab8d84b1e38286b7ff76b4ccf3f350815870 /Alc/alcEcho.c | |
parent | 23bda38be06f87aa58f504012a36bf537d52d342 (diff) |
Rename SpeakerGain to ChannelGain
Diffstat (limited to 'Alc/alcEcho.c')
-rw-r--r-- | Alc/alcEcho.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/alcEcho.c b/Alc/alcEcho.c index 17cc492e..0a8980a0 100644 --- a/Alc/alcEcho.c +++ b/Alc/alcEcho.c @@ -96,7 +96,7 @@ static ALvoid EchoUpdate(ALeffectState *effect, ALCcontext *Context, const ALeff ALCdevice *Device = Context->Device; ALuint frequency = Device->Frequency; ALfloat dirGain, ambientGain; - const ALfloat *speakerGain; + const ALfloat *ChannelGain; ALfloat lrpan, cw, g, gain; ALuint i, pos; @@ -124,22 +124,22 @@ static ALvoid EchoUpdate(ALeffectState *effect, ALCcontext *Context, const ALeff /* First tap panning */ pos = aluCart2LUTpos(0.0f, ((lrpan>0.0f)?-1.0f:1.0f)); - speakerGain = Device->PanningLUT[pos]; + ChannelGain = Device->PanningLUT[pos]; for(i = 0;i < Device->NumChan;i++) { enum Channel chan = Device->Speaker2Chan[i]; - state->Gain[0][chan] = lerp(ambientGain, speakerGain[chan], dirGain) * gain; + state->Gain[0][chan] = lerp(ambientGain, ChannelGain[chan], dirGain) * gain; } /* Second tap panning */ pos = aluCart2LUTpos(0.0f, ((lrpan>0.0f)?1.0f:-1.0f)); - speakerGain = Device->PanningLUT[pos]; + ChannelGain = Device->PanningLUT[pos]; for(i = 0;i < Device->NumChan;i++) { enum Channel chan = Device->Speaker2Chan[i]; - state->Gain[1][chan] = lerp(ambientGain, speakerGain[chan], dirGain) * gain; + state->Gain[1][chan] = lerp(ambientGain, ChannelGain[chan], dirGain) * gain; } } |