From edf78b077efa5a8d3f11ea2059095f33e9f971a8 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 17 Jun 2011 16:22:39 -0700 Subject: Use separate lines for HRTF history and values --- OpenAL32/Include/alMain.h | 2 +- OpenAL32/Include/alSource.h | 5 +++-- OpenAL32/alSource.c | 6 ++++-- 3 files changed, 8 insertions(+), 5 deletions(-) (limited to 'OpenAL32') diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index c77fa6eb..ab44fa55 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -497,7 +497,7 @@ ALboolean IsValidChannels(ALenum type); #define HRIR_BITS (5) #define HRIR_LENGTH (1<HrtfHistory[j][k] = 0.0f; + for(k = 0;k < HRIR_LENGTH;k++) { - Source->HrtfHistory[j][k][0] = 0.0f; - Source->HrtfHistory[j][k][1] = 0.0f; + Source->HrtfValues[j][k][0] = 0.0f; + Source->HrtfValues[j][k][1] = 0.0f; } } Source->HrtfOffset = 0; -- cgit v1.2.3