aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-04-11 15:20:46 -0700
committerChris Robinson <[email protected]>2010-04-11 15:20:46 -0700
commite0fa4979487f6adc566a4e1b18e2caeeee8843ee (patch)
tree3e7fc41580acd170da9070cdc08f3ffdffbaf901 /Alc/ALu.c
parentf082c7353939d233e134d1403af13dc67d8cd853 (diff)
Use a linear scaling when sending multi-channel sources to auxiliary slots
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 4ce1f4d7..76c49d76 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -1143,7 +1143,7 @@ another_source:
const int chans2[] = {
BACK_LEFT, SIDE_LEFT, BACK_RIGHT, SIDE_RIGHT
};
- const ALfloat scaler = aluSqrt(1.0f/Channels);
+ const ALfloat scaler = 1.0f/Channels;
const ALfloat dupscaler = aluSqrt(1.0f/3.0f);
#define DO_MIX(resampler) do { \
@@ -1195,7 +1195,7 @@ another_source:
const int chans[] = {
FRONT_LEFT, FRONT_RIGHT
};
- const ALfloat scaler = aluSqrt(1.0f/Channels);
+ const ALfloat scaler = 1.0f/Channels;
#define DO_MIX(resampler) do { \
while(BufferSize--) \
@@ -1244,7 +1244,7 @@ another_source:
FRONT_LEFT, FRONT_RIGHT,
BACK_LEFT, BACK_RIGHT
};
- const ALfloat scaler = aluSqrt(1.0f/Channels);
+ const ALfloat scaler = 1.0f/Channels;
switch(Resampler)
{
@@ -1266,7 +1266,7 @@ another_source:
FRONT_CENTER, LFE,
BACK_LEFT, BACK_RIGHT
};
- const ALfloat scaler = aluSqrt(1.0f/Channels);
+ const ALfloat scaler = 1.0f/Channels;
switch(Resampler)
{
@@ -1289,7 +1289,7 @@ another_source:
BACK_CENTER,
SIDE_LEFT, SIDE_RIGHT
};
- const ALfloat scaler = aluSqrt(1.0f/Channels);
+ const ALfloat scaler = 1.0f/Channels;
switch(Resampler)
{
@@ -1312,7 +1312,7 @@ another_source:
BACK_LEFT, BACK_RIGHT,
SIDE_LEFT, SIDE_RIGHT
};
- const ALfloat scaler = aluSqrt(1.0f/Channels);
+ const ALfloat scaler = 1.0f/Channels;
switch(Resampler)
{