From 2a77e840cc54ecb6e8b5171b8c193b7dc88a3213 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 30 Sep 2009 16:02:49 -0700 Subject: [PATCH] Fix type casts for 7.1 output --- Alc/ALu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Alc/ALu.c b/Alc/ALu.c index 7b108cfb..c5d25346 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -1336,8 +1336,8 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) ((type*)buffer)[4] = (func)(DryBuffer[i][FRONT_CENTER]); \ ((type*)buffer)[5] = (func)(DryBuffer[i][LFE]); \ } \ - ((ALubyte*)buffer)[6] = (func)(DryBuffer[i][SIDE_LEFT]); \ - ((ALubyte*)buffer)[7] = (func)(DryBuffer[i][SIDE_RIGHT]); \ + ((type*)buffer)[6] = (func)(DryBuffer[i][SIDE_LEFT]); \ + ((type*)buffer)[7] = (func)(DryBuffer[i][SIDE_RIGHT]); \ buffer = ((type*)buffer) + 8; \ } \ break; -- 2.11.4.GIT