@ Blaazen : OK.
Second quiz : (if you see error in my explanation, please advise).
I want to understand how the wav data (and it seems also the buffers data) are stored.
The song is a huge array of integers where X is the position in the sound.
That array of integers could be array of 8bits or more (it is called
resolution).
Each position (X) is called a
Sample and represents a certain amount of time.
And here i have doubt about the range of value, is it that the resolution or the range of array ?
In pascal that array could be : Buffer: array[0..$ffff] of cInt16;
Let say Y is $ffff and Z is length(cInt16).
A value referencing a certain frequency is stored from 0 to Y.
Time Channel Value ( from 0 to Z)
0 1 (left) 0x0053 ///// highest left frequency (from 0 to Z)
2 (right) 0x0024 ///// highest right frequency (from 0 to Z)
1 1 (left) 0x0057
2 (right) 0x0029
2 1 (left) 0x0063
2 (right) 0x003C
...
Y-1 1 (left) 0x0053 ///// lowest left frequency (from 0 to Z)
Y 2 (right) 0x003C ///// lowest right frequency (from 0 to Z)
Is that shema right ?