5,391
edits
m (design)  | 
				m (todo: double-check the sample frame and bps)  | 
				||
| Line 2: | Line 2: | ||
In the Mac version Oni uses the AIFC sound format. The header of this format is detailed below. Note the [[wikipedia:Big_Endian|Big Endian]] order.  | |||
| Line 10: | Line 10: | ||
{{Table}}  | {{Table}}  | ||
{{OBDth}}  | {{OBDth}}  | ||
{{OBDtrBK|  | {{OBDtrBK|AIFC format header (black outline)}}  | ||
{{OBDtr| 0x10 | int32    |FFC8C8| 00 00 00 16 | 22    | size of the following complete header part in bytes }}  | {{OBDtr| 0x10 | int32    |FFC8C8| 00 00 00 16 | 22    | size of the following complete header part in bytes }}  | ||
{{OBDtr| 0x14 | int16    |FFFFC8| 00 01       | 1     | number of channels (1 <nowiki>=</nowiki> mono) }}  | {{OBDtr| 0x14 | int16    |FFFFC8| 00 01       | 1     | number of channels (1 <nowiki>=</nowiki> mono) }}  | ||
{{OBDtr| 0x16 | int32    |C8FFC8| 00 00 01 3F | 319   | [[image:sndd_hm1.gif]] }}  | {{OBDtr| 0x16 | int32    |C8FFC8| 00 00 01 3F | 319   | [[image:sndd_hm1.gif]] }}  | ||
{{OBDtr| 0x1A | int16    |C8FFFF| 00 10       | 16    | bits per sample }}  | {{OBDtr| 0x1A | int16    |C8FFFF| 00 10       | 16    | bits per sample }}  | ||
{{OBDtr| 0x1C | float80  |FFC8FF| 40 0D AC... | 22050 | samples per second  | {{OBDtr| 0x1C | float80  |FFC8FF| 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) }}  | |||
{{OBDtr| 0x26 | char[4]  |FFC800| 69 6D 61 34 | ima4  | compression type }}  | {{OBDtr| 0x26 | char[4]  |FFC800| 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".  | |||
<center>[[OBD:SNDD#PC_demo_and_Mac|Back to Mac SNDD (.dat part)]]</center>  | |||
<center>[[OBD:  | |||