aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-12-09 16:37:23 -0800
committerChris Robinson <[email protected]>2010-12-09 16:37:23 -0800
commitc3cd4c80b2a248918da9d049487213c4cc8c128f (patch)
treee27b6f1f5061b1e4065a796378ffe6e794f67d7e /OpenAL32
parentbe3f3c4bf03dd5800e25f0d3144f2e122bac2f94 (diff)
Use a matrix when rendering to the dry buffer
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alSource.h5
1 files changed, 4 insertions, 1 deletions
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];