aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-06-03 01:06:00 -0700
committerChris Robinson <[email protected]>2011-06-03 01:06:00 -0700
commit7ddfacb58f941b21da26b2749d3204307e3a0bbd (patch)
tree2cb41f7de025705f38a634781e6413c7c004829e /OpenAL32/alSource.c
parentc7a80418d9291cad29dc293b95a5c328f4408b08 (diff)
Use a minimum phase HRTF data set
This reduces the coefficient size from 128 down to 32, with a set of delays
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index 6c6bf44b..7dc4a2a9 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -1355,8 +1355,11 @@ AL_API ALvoid AL_APIENTRY alSourcePlayv(ALsizei n, const ALuint *sources)
for(j = 0;j < MAXCHANNELS;j++)
{
ALuint k;
- for(k = 0;k < HRTF_LENGTH;k++)
- Source->HrtfHistory[j][k] = 0.0f;
+ for(k = 0;k < SRC_HISTORY_LENGTH;k++)
+ {
+ Source->HrtfHistory[j][k][0] = 0.0f;
+ Source->HrtfHistory[j][k][1] = 0.0f;
+ }
}
Source->HrtfOffset = 0;
}