pub fn validate_channels(codec_type: CodecType, channels: u8) -> Result<()>
Validate channel count for a specific codec
Returns an error when channels is unsupported by codec_type.
channels
codec_type