encoder: vary number of audio channels