OBD:SNDD/aif: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (todo: double-check the sample frame and bps)
mNo edit summary
Line 25: Line 25:


<center>[[OBD:SNDD#PC_demo_and_Mac|Back to Mac SNDD (.dat part)]]</center>
<center>[[OBD:SNDD#PC_demo_and_Mac|Back to Mac SNDD (.dat part)]]</center>
{{OBD}}

Revision as of 00:23, 18 July 2010

Wav Header          Aif Header


In the Mac version Oni uses the AIFC sound format. The header of this format is detailed below. Note the Big Endian order.


Sndd hdm.gif


Offset Type Raw Hex Value Description
AIFC format header (black outline)
0x10 int32 00 00 00 16 22 size of the following complete header part in bytes
0x14 int16 00 01 1 number of channels (1 = mono)
0x16 int32 00 00 01 3F 319 File:Sndd hm1.gif
0x1A int16 00 10 16 bits per sample
0x1C float80 40 0D AC... 22050 samples per second (a.k.a. "frequency" or "sample rate")

(it's an 80 bit "IEEE Standard 754" floating point number)

0x26 char[4] 69 6D 61 34 ima4 compression type
Note
The Mac versions use only one sample rate: 22.05 kHz.
The number of channels is specified in the .dat part.
Not sure for the "bits per sample" and "sample frame".
Back to Mac SNDD (.dat part)