diff options
author | Chris Robinson <[email protected]> | 2014-11-22 13:16:24 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-11-22 13:16:24 -0800 |
commit | 637993a7938063ec5e7cc76000b08218faa088e0 (patch) | |
tree | 9bb4e5d470f121ce36c3484fd9d8936989380bfd /Alc | |
parent | 4ebf0ad717d9f2876b3d9a3173dae6981aa69cc1 (diff) |
Only update the necessary channels
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALu.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -146,7 +146,7 @@ static void UpdateDryStepping(DirectParams *params, ALuint num_chans) for(i = 0;i < num_chans;i++) { MixGains *gains = params->Gains[i]; - for(j = 0;j < MAX_OUTPUT_CHANNELS;j++) + for(j = 0;j < params->NumChannels;j++) { gains[j].Current = gains[j].Target; gains[j].Step = 1.0f; @@ -160,7 +160,7 @@ static void UpdateDryStepping(DirectParams *params, ALuint num_chans) for(i = 0;i < num_chans;i++) { MixGains *gains = params->Gains[i]; - for(j = 0;j < MAX_OUTPUT_CHANNELS;j++) + for(j = 0;j < params->NumChannels;j++) { ALfloat cur = maxf(gains[j].Current, FLT_EPSILON); ALfloat trg = maxf(gains[j].Target, FLT_EPSILON); |