diff options
author | Chris Robinson <[email protected]> | 2017-08-19 23:52:24 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-08-19 23:52:24 -0700 |
commit | 3e56e7f562845829db30292c822d06a85111e4a3 (patch) | |
tree | a10751655a6c8de1729af8f68a00c97b52a4c9c0 | |
parent | e8e1a05f38f85305c5a03db4b04a535b6b412cd1 (diff) |
Properly clear the extra ChannelsPerOrder entries
-rw-r--r-- | Alc/ALu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |