ac3enc: select bandwidth based on bit rate, sample rate, and number of