aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/wave.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/Alc/wave.c b/Alc/wave.c
index 229586f8..37358098 100644
--- a/Alc/wave.c
+++ b/Alc/wave.c
@@ -101,7 +101,12 @@ static ALuint WaveProc(ALvoid *ptr)
ALubyte *bytes = data->buffer;
ALuint i;
- if(aluBytesFromFormat(pDevice->Format) == 2)
+ if(aluBytesFromFormat(pDevice->Format) == 1)
+ {
+ for(i = 0;i < data->size;i++)
+ fputc(bytes[i], data->f);
+ }
+ else if(aluBytesFromFormat(pDevice->Format) == 2)
{
for(i = 0;i < data->size;i++)
fputc(bytes[i^1], data->f);