From 7ddfacb58f941b21da26b2749d3204307e3a0bbd Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 3 Jun 2011 01:06:00 -0700 Subject: Use a minimum phase HRTF data set This reduces the coefficient size from 128 down to 32, with a set of delays --- OpenAL32/alSource.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'OpenAL32/alSource.c') 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; } -- cgit v1.2.3