aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alu.h6
-rw-r--r--OpenAL32/alSource.c4
2 files changed, 6 insertions, 4 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index c4baed83..3ec16565 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -38,8 +38,6 @@ extern "C" {
#endif
typedef struct HrtfState {
- ALboolean Moving;
- ALuint Counter;
ALIGN(16) ALfloat History[MAX_INPUT_CHANNELS][SRC_HISTORY_LENGTH];
ALIGN(16) ALfloat Values[MAX_INPUT_CHANNELS][HRIR_LENGTH][2];
ALuint Offset;
@@ -71,6 +69,10 @@ typedef struct DirectParams {
* channel target (eg. FrontLeft). Not used with HRTF. */
ALfloat Gains[MAX_INPUT_CHANNELS][MaxChannels];
} Mix;
+ /* If not 'moving', gain/coefficients are set directly without fading. */
+ ALboolean Moving;
+ /* Stepping counter for gain/coefficient fading. */
+ ALuint Counter;
ALfilterState LpFilter[MAX_INPUT_CHANNELS];
} DirectParams;
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index e12c9b35..082d8f54 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -2339,8 +2339,8 @@ ALvoid SetSourceState(ALsource *Source, ALCcontext *Context, ALenum state)
}
else
{
- src->Direct.Mix.Hrtf.State.Moving = AL_FALSE;
- src->Direct.Mix.Hrtf.State.Counter = 0;
+ src->Direct.Moving = AL_FALSE;
+ src->Direct.Counter = 0;
for(j = 0;j < MAX_INPUT_CHANNELS;j++)
{
for(k = 0;k < SRC_HISTORY_LENGTH;k++)