diff options
author | Chris Robinson <[email protected]> | 2010-03-24 16:58:58 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-03-24 16:58:58 -0700 |
commit | 1c14c13c2fe095614a6b53b08174ee16cbcddd22 (patch) | |
tree | 5e23d5465dd2ea9cda9d5b1de5171321b15d6e7f /Alc | |
parent | b79b92967f7507c473fa318f8ec03365c2a77734 (diff) |
Fix 8-bit output with the Wave Writer
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/wave.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); |