サウンド > ADPCM 圧縮

ADPCM 圧縮

ADPCMSOUNDDATA

フィールド コメント
AdpcmCodeSize UB[2]
0 = 2 bits/sample
1 = 3 bits/sample
2 = 4 bits/sample
3 = 5 bits/sample
Bits per ADPCM code less 2.
The actual size of each code is
AdpcmCodeSize + 2.
AdpcmPackets If SoundType = mono,
ADPCMMONOPACKET
[one or more]
If SoundType = stereo,
ADPCMSTEREOPACKET
[one or more]
Array of ADPCMPACKETs.

ADPCMMONOPACKET

フィールド コメント
InitialSample SI16 First sample. Identical to
first sample in
uncompressed sound.
InitialIndex UB[6] Initial index into the
ADPCM StepSizeTable.
AdpcmCodeData UB[4095 *
(AdpcmCodeSize+2)]
4095 ADPCM codes.
Each sample is
(AdpcmCodeSize + 2) bits.

ADPCMSTEREOPACKET

フィールド コメント
InitialSampleLeft SI16 First sample for left
channel. Identical to first
sample in uncompressed
sound.
InitialIndexLeft UB[6] Initial index into the
ADPCM StepSizeTable*
for left channel.
InitialSampleRight SI16 First sample for right
channel. Identical to first
sample in uncompressed
sound.
InitialIndexRight UB[6] Initial index into the
ADPCM StepSizeTable*
for right channel
AdpcmCodeData UB[8190 * (AdpcmCodeSize+2)] 4095 ADPCM codes per
channel, total 8190. Each
sample is
(AdpcmCodeSize + 2) bits.
Channel data is interleaved
left, then right.
最終更新:2017年02月20日 21:14