diff options
author | Chris Robinson <[email protected]> | 2014-11-24 01:31:38 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-11-24 01:31:38 -0800 |
commit | 13608d4d61884a21ca5790b22fa121c2359253ed (patch) | |
tree | d86f8f2f1c25199a1a963c13a6c99b658f7659b5 /OpenAL32 | |
parent | c37a9719471a0ec72bf1716caf83f8ebd2a84e1a (diff) |
Move the voice's last position and gain out of the Hrtf container
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alu.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index 0462fda8..f4871413 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -64,6 +64,9 @@ typedef struct DirectParams { ALboolean Moving; /* Stepping counter for gain/coefficient fading. */ ALuint Counter; + /* Last direction (relative to listener) and gain of a moving source. */ + ALfloat LastDir[3]; + ALfloat LastGain; struct { enum ActiveFilters ActiveType; @@ -75,8 +78,6 @@ typedef struct DirectParams { HrtfParams Params[MAX_INPUT_CHANNELS]; HrtfState State[MAX_INPUT_CHANNELS]; ALuint IrSize; - ALfloat Gain; - ALfloat Dir[3]; } Hrtf; MixGains Gains[MAX_INPUT_CHANNELS][MAX_OUTPUT_CHANNELS]; } DirectParams; |