From f843b7e2e362d3fc521771cdf8847de0a6f3a8d0 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 2 May 2011 02:22:30 -0700 Subject: Implement HRTF mixers for multi-channel sources --- OpenAL32/alSource.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'OpenAL32/alSource.c') diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index 14beb85f..d6e9b18a 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -1349,8 +1349,12 @@ AL_API ALvoid AL_APIENTRY alSourcePlayv(ALsizei n, const ALuint *sources) Source->Buffer = Source->queue->buffer; - for(j = 0;j < HRTF_LENGTH;j++) - Source->HrtfHistory[j] = 0.0f; + for(j = 0;j < MAXCHANNELS;j++) + { + ALuint k; + for(k = 0;k < HRTF_LENGTH;k++) + Source->HrtfHistory[j][k] = 0.0f; + } Source->HrtfOffset = 0; } else -- cgit v1.2.3