Digitized Sound I/O Programming
3-3
The order of the data varies between 8-bit and 16-bit data, and mono and stereo
formats. The following show the data order for the first four bytes of different PCM
data formats:
sample 1
sample 2
sample 3
sample 4
Channel 0
Channel 0
Channel 0
Channel 0
Figure 3-2: Order of 8-bit mono PCM data
sample 1
sample 2
Channel 0
(left)
Channel 1
(right)
Channel 0
(left)
Channel 1
(right)
Figure 3-3: Order of 8-bit stereo PCM data
sample 1
sample 2
Channel 0
Low-byte
Channel 0
High-byte
Channel 0
Low-byte
Channel 0
High-byte
Figure 3-4: Order of 16-bit mono PCM data
sample 1
Channel 0
(left)
Low-byte
Channel 0
(left)
High-byte
Channel 1
(right)
Low-byte
Channel 1
(right)
High-byte
Figure 3-5: Order of 16-bit stereo PCM data