diff options
author | Chris Robinson <[email protected]> | 2014-03-19 17:55:09 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-03-19 17:55:09 -0700 |
commit | 0c5cbafcd84df288c7f41e0ef06c9e3109b03365 (patch) | |
tree | adb8387ce0b38a6ae21cd2dbc42d84ed6f554f28 /OpenAL32/Include | |
parent | 213e3ba4afc933e0cf0a5beefa040cbe4ef208cd (diff) |
Use a union to combine HRTF and non-HRTF mixer params
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alSource.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index 3fb3e553..0cc72d27 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -53,15 +53,17 @@ typedef struct DirectParams { ALfloat *ClickRemoval; ALfloat *PendingClicks; - struct { - HrtfParams Params; - HrtfState *State; - } Hrtf; - - /* 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. FrontLeft). Not used with HRTF. */ - ALfloat Gains[MAX_INPUT_CHANNELS][MaxChannels]; + union { + struct { + HrtfParams Params; + HrtfState *State; + } Hrtf; + + /* 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. FrontLeft). Not used with HRTF. */ + ALfloat Gains[MAX_INPUT_CHANNELS][MaxChannels]; + } Mix; ALfilterState LpFilter[MAX_INPUT_CHANNELS]; } DirectParams; |