aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-08-19 23:52:24 -0700
committerChris Robinson <[email protected]>2017-08-19 23:52:24 -0700
commit3e56e7f562845829db30292c822d06a85111e4a3 (patch)
treea10751655a6c8de1729af8f68a00c97b52a4c9c0
parente8e1a05f38f85305c5a03db4b04a535b6b412cd1 (diff)
Properly clear the extra ChannelsPerOrder entries
-rw-r--r--Alc/ALu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 6c37df78..3f768ea1 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -576,7 +576,7 @@ static void CalcPanningAndFilters(ALvoice *voice, const ALfloat Distance, const
voice->Direct.ChannelsPerOrder[0] = 1;
voice->Direct.ChannelsPerOrder[1] = mini(voice->Direct.Channels-1, 3);
for(i = 2;i < MAX_AMBI_ORDER+1;i++)
- voice->Direct.ChannelsPerOrder[2] = 0;
+ voice->Direct.ChannelsPerOrder[i] = 0;
voice->Flags |= VOICE_HAS_NFC;
}