diff options
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -1170,10 +1170,10 @@ next_source: const int chans2[] = { BACK_LEFT, SIDE_LEFT, BACK_RIGHT, SIDE_RIGHT }; - const ALfloat scaler = 1.0f/Channels; const ALfloat dupscaler = aluSqrt(1.0f/3.0f); #define DO_MIX(resampler) do { \ + const ALfloat scaler = 1.0f/Channels; \ while(BufferSize--) \ { \ for(i = 0;i < OUTPUTCHANNELS;i++) \ @@ -1223,9 +1223,9 @@ next_source: const int chans[] = { FRONT_LEFT, FRONT_RIGHT }; - const ALfloat scaler = 1.0f/Channels; #define DO_MIX(resampler) do { \ + const ALfloat scaler = 1.0f/Channels; \ while(BufferSize--) \ { \ for(i = 0;i < OUTPUTCHANNELS;i++) \ @@ -1273,7 +1273,6 @@ next_source: FRONT_LEFT, FRONT_RIGHT, BACK_LEFT, BACK_RIGHT }; - const ALfloat scaler = 1.0f/Channels; switch(Resampler) { @@ -1295,7 +1294,6 @@ next_source: FRONT_CENTER, LFE, BACK_LEFT, BACK_RIGHT }; - const ALfloat scaler = 1.0f/Channels; switch(Resampler) { @@ -1318,7 +1316,6 @@ next_source: BACK_CENTER, SIDE_LEFT, SIDE_RIGHT }; - const ALfloat scaler = 1.0f/Channels; switch(Resampler) { @@ -1341,7 +1338,6 @@ next_source: BACK_LEFT, BACK_RIGHT, SIDE_LEFT, SIDE_RIGHT }; - const ALfloat scaler = 1.0f/Channels; switch(Resampler) { |