Added mixer channel count check to prevent -10877 errors.