wavenc: Fix writing of the channel mask with >2 channels
The channel position is an enum but the conversion code assumed it's a mask. Convert accordingly.
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
The channel position is an enum but the conversion code assumed it's a mask. Convert accordingly.