diff options
author | Chris Robinson <[email protected]> | 2007-12-31 00:08:07 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2007-12-31 00:08:07 -0800 |
commit | f7ef5c169bff8366bb5ea4b245111ace5669109e (patch) | |
tree | 454b1b6e4f07a1f2ac6d80ddd76c3f61c09fd7b7 /Alc/ALu.c | |
parent | 927763902f13e9f28f0093df3579946183fef83e (diff) |
Don't default to AL_FORMAT_STEREO16 when writing to the output buffer
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |