aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2007-12-31 00:08:07 -0800
committerChris Robinson <[email protected]>2007-12-31 00:08:07 -0800
commitf7ef5c169bff8366bb5ea4b245111ace5669109e (patch)
tree454b1b6e4f07a1f2ac6d80ddd76c3f61c09fd7b7
parent927763902f13e9f28f0093df3579946183fef83e (diff)
Don't default to AL_FORMAT_STEREO16 when writing to the output buffer
-rw-r--r--Alc/ALu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 038bf5d3..f3cd24f5 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -680,7 +680,6 @@ ALvoid aluMixData(ALCcontext *ALContext,ALvoid *buffer,ALsizei size,ALenum forma
}
break;
case AL_FORMAT_STEREO16:
- default:
for(i = 0;i < SamplesToDo;i++)
{
((ALshort*)buffer)[0] = aluF2S(DryBuffer[i][0]+WetBuffer[i][0]);
@@ -710,6 +709,9 @@ ALvoid aluMixData(ALCcontext *ALContext,ALvoid *buffer,ALsizei size,ALenum forma
buffer = ((ALshort*)buffer) + 6;
}
break;
+
+ default:
+ break;
}
size -= SamplesToDo;