From 3e56e7f562845829db30292c822d06a85111e4a3 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 19 Aug 2017 23:52:24 -0700 Subject: Properly clear the extra ChannelsPerOrder entries --- Alc/ALu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3