aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-05-02 02:22:30 -0700
committerChris Robinson <[email protected]>2011-05-02 02:22:30 -0700
commitf843b7e2e362d3fc521771cdf8847de0a6f3a8d0 (patch)
tree00a92ec18d12f64713be07a111ceb1ea7872b74e /OpenAL32/alSource.c
parenteea86ab8916c5e0213dabc404a191bbf0e0affbe (diff)
Implement HRTF mixers for multi-channel sources
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c8
1 files changed, 6 insertions, 2 deletions
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