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.
The channel position is an enum but the conversion code assumed it's a mask. Convert accordingly.