View Single Post
Old 08 March 2009, 10:15 am   #2
Musepack developer
Join Date: Sep 2006
Location: Villeurbanne - France
Posts: 36

Originally Posted by getID3 View Post
The documentation seems slightly off here -- it shows a value range of 1..16, but fails to clarify that the stored value is 0..15 and the actual number of channels is this +1 (so mono audio is stored as "0", stereo is stored as "1", etc).
The value is stored in 4 bits (size column), so can only take values 0 to 15. Those values must be interpreted as 1 to 16, so just add 1.
In case of doubt, you can use the sources :
r2d is offline   Reply With Quote