From f7ef5c169bff8366bb5ea4b245111ace5669109e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 31 Dec 2007 00:08:07 -0800 Subject: [PATCH] Don't default to AL_FORMAT_STEREO16 when writing to the output buffer --- Alc/ALu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;