diff options
author | Chris Robinson <[email protected]> | 2008-01-12 07:36:22 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-01-12 07:36:22 -0800 |
commit | 38db8eb64bad101e5c16133582c5c4e1a8716593 (patch) | |
tree | ea0b8dbf45c4bfa02845aad2fb850c68040d41ab /Alc/ALu.c | |
parent | 3bbbf8a025c66367fdb19dce70c9a2b6505725f4 (diff) |
Reorder setting of some variables
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -460,12 +460,10 @@ static ALvoid CalcSourceParams(ALCcontext *ALContext, ALsource *ALSource, DryGainHF *= pow(ALSource->AirAbsorptionFactor * AIRABSORBGAINHF, Distance * MetersPerUnit); - *drygainhf = DryGainHF; - *wetgainhf = WetGainHF; + WetMix *= ALSource->Send[0].Slot.Gain; //7. Convert normalized position into pannings, then into channel volumes aluNormalize(Position); - WetMix *= ALSource->Send[0].Slot.Gain; switch(aluChannelsFromFormat(OutputFormat)) { case 1: @@ -480,7 +478,7 @@ static ALvoid CalcSourceParams(ALCcontext *ALContext, ALsource *ALSource, { wetsend[FRONT_LEFT] = 0.0f; wetsend[FRONT_RIGHT] = 0.0f; - *wetgainhf = 1.0f; + WetGainHF = 1.0f; } break; case 2: @@ -496,7 +494,7 @@ static ALvoid CalcSourceParams(ALCcontext *ALContext, ALsource *ALSource, { wetsend[FRONT_LEFT] = 0.0f; wetsend[FRONT_RIGHT] = 0.0f; - *wetgainhf = 1.0f; + WetGainHF = 1.0f; } break; case 4: @@ -526,7 +524,7 @@ static ALvoid CalcSourceParams(ALCcontext *ALContext, ALsource *ALSource, wetsend[FRONT_RIGHT] = 0.0f; wetsend[BACK_LEFT] = 0.0f; wetsend[BACK_RIGHT] = 0.0f; - *wetgainhf = 1.0f; + WetGainHF = 1.0f; } break; case 7: @@ -562,7 +560,7 @@ static ALvoid CalcSourceParams(ALCcontext *ALContext, ALsource *ALSource, wetsend[SIDE_RIGHT] = 0.0f; wetsend[BACK_LEFT] = 0.0f; wetsend[BACK_RIGHT] = 0.0f; - *wetgainhf = 1.0f; + WetGainHF = 1.0f; } } else @@ -590,12 +588,15 @@ static ALvoid CalcSourceParams(ALCcontext *ALContext, ALsource *ALSource, wetsend[SIDE_RIGHT] = 0.0f; wetsend[BACK_LEFT] = 0.0f; wetsend[BACK_RIGHT] = 0.0f; - *wetgainhf = 1.0f; + WetGainHF = 1.0f; } } default: break; } + + *drygainhf = DryGainHF; + *wetgainhf = WetGainHF; } else { |