diff options
author | Chris Robinson <[email protected]> | 2010-12-09 16:37:23 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-12-09 16:37:23 -0800 |
commit | c3cd4c80b2a248918da9d049487213c4cc8c128f (patch) | |
tree | e27b6f1f5061b1e4065a796378ffe6e794f67d7e /OpenAL32 | |
parent | be3f3c4bf03dd5800e25f0d3144f2e122bac2f94 (diff) |
Use a matrix when rendering to the dry buffer
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alSource.h | 5 |
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]; |