AudioSwitcher: Add an upper limit to nChannels to prevent a potential buffer overrun.