From c3cd4c80b2a248918da9d049487213c4cc8c128f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 9 Dec 2010 16:37:23 -0800 Subject: Use a matrix when rendering to the dry buffer --- OpenAL32/Include/alSource.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenAL32') diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index 09ff330b..e43792c3 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -91,7 +91,10 @@ typedef struct ALsource struct { ALint Step; - ALfloat DryGains[MAXCHANNELS]; + /* A mixing matrix. First subscript is the channel number of the input + * data (regardless of channel configuration) and the second is the + * channel target (eg. FRONT_LEFT) */ + ALfloat DryGains[MAXCHANNELS][MAXCHANNELS]; FILTER iirFilter; ALfloat history[MAXCHANNELS*2]; -- cgit v1.2.3