Fixed audio encoding for differing sample formats and number of channels.