5,391
edits
| mNo edit summary |  (Filling in some accurate knowledge (while debugging the zap sounds).) | ||
| Line 19: | Line 19: | ||
| {{OBDtrBK|1=Special extended ADPCM wav format header (black outline)}} | {{OBDtrBK|1=Special extended ADPCM wav format header (black outline)}} | ||
| {{OBDtr| 0x1C | int16    |C87C64| 20 00       | 32    | size of the following extended information part in bytes }} | {{OBDtr| 0x1C | int16    |C87C64| 20 00       | 32    | size of the following extended information part in bytes }} | ||
| {{OBDtr| 0x1E | int16    |B0C3D4| F4 03       | 1012  | [[image:sndd_hd2.gif]] }} | {{OBDtr| 0x1E | int16    |B0C3D4| F4 03       | 1012  | [[image:sndd_hd2.gif]] | ||
| '''N.B.''' For stereo, the -7 in the numerator is replaced with a -14. [[User:Geyser|geyser]] ([[User talk:Geyser|talk]])}} | |||
| {{OBDtr| 0x20 | int16    |E7CEA5| 07 00       | 7     | number of the following coefficient sets }} | {{OBDtr| 0x20 | int16    |E7CEA5| 07 00       | 7     | number of the following coefficient sets }} | ||
| |-align=center valign=top | |-align=center valign=top | ||
| Line 41: | Line 42: | ||
| Below are the three types of headers occurring in Oni | |||
| ---- | |||
| ;22.05 kHz mono | ;22.05 kHz mono | ||
| *sample rate  | *'''1''' channel | ||
| *average rate 11155 | *sample rate '''''22050''''' Hz | ||
| *block alignment 512 | *average rate '''11155''', truncated from ~11155.7312253 = 22050*512/1012 | ||
| *1012 samples per block | *block alignment '''''512''''' | ||
| *'''4''' bits per sample | |||
| *'''''1012''''' samples per block = 2 + (512 - 7)*8/4/1 | |||
| *standard coefficient table | |||
| {| | {| | ||
| {{HexRow|0x00| | {{HexRow|0x00| | ||
| |°°|°°|°°|°°|°°|°°|°°|°°|08|00|00|00|02|00|01|00| | |°°|°°|°°|°°|°°|°°|°°|°°|08|00|00|00|02|00|'''01'''|'''00'''| | ||
| }} | }} | ||
| {{HexRow|0x10| | {{HexRow|0x10| | ||
| |22|56|00|00|93|2B|00|00|00|02|04|00|20|00|F4|03 | |'''''22'''''|'''''56'''''|'''''00'''''|'''''00''''' | ||
| |'''93'''|'''2B'''|'''00'''|'''00''' | |||
| |'''''00'''''|'''''02''''' | |||
| |'''04'''|'''00''' | |||
| |20|00 | |||
| |'''''F4'''''|'''''03''''' | |||
| }} | }} | ||
| {{HexRow|0x20| | {{HexRow|0x20| | ||
| Line 57: | Line 68: | ||
| }} | }} | ||
| {{HexRow|0x30| | {{HexRow|0x30| | ||
| |40|00|F0|00|00|00|CC|01|30|FF|88|01|18|FF| | |40|00|F0|00|00|00|CC|01|30|FF|88|01|18|FF|°°|°°| | ||
| }} | }} | ||
| |} | |} | ||
| ; | ---- | ||
| *sample rate  | ;22.05 kHz stereo | ||
| *average rate  | *'''2''' cnannels | ||
| *block alignment 1024 | *sample rate '''''22050''''' Hz | ||
| * | *average rate '''22311''', truncated from ~22311.4624506 = 22050*1024/1012  | ||
| *block alignment '''''1024''''' | |||
| *'''4''' bits per sample | |||
| *'''''1012''''' samples per block = 2 + (1024 - 2*7)*8/4/2 | |||
| *standard coefficient table | |||
| {| | {| | ||
| {{HexRow|0x00| | {{HexRow|0x00| | ||
| |°°|°°|°°|°°|°°|°°|°°|°°|08|00|00|00|02|00| | |°°|°°|°°|°°|°°|°°|°°|°°|08|00|00|00|02|00|'''02'''|'''00'''| | ||
| }} | }} | ||
| {{HexRow|0x10| | {{HexRow|0x10| | ||
| |22|56|00|00| | |'''''22'''''|'''''56'''''|'''''00'''''|'''''00''''' | ||
| |'''27'''|'''57'''|'''00'''|'''00''' | |||
| |'''''00'''''|'''''04''''' | |||
| |'''04'''|'''00''' | |||
| |20|00 | |||
| |'''''F4'''''|'''''03''''' | |||
| }} | }} | ||
| {{HexRow|0x20| | {{HexRow|0x20| | ||
| Line 76: | Line 96: | ||
| }} | }} | ||
| {{HexRow|0x30| | {{HexRow|0x30| | ||
| |40|00|F0|00|00|00|CC|01|30|FF|88|01|18|FF| | |40|00|F0|00|00|00|CC|01|30|FF|88|01|18|FF|°°|°° | ||
| }} | }} | ||
| |} | |} | ||
| ; | ---- | ||
| *sample rate  | ;44 kHz mono | ||
| *average rate  | *'''1''' channel | ||
| *block alignment 1024 | *sample rate '''''44100''''' kHz | ||
| * | *average rate '''22179''', truncated from ~22179.9607073 = 44100*1024/2036 | ||
| *block alignment '''''1024''''' | |||
| *'''4''' bits per sample | |||
| *'''''2036''''' samples per block = 2 + (1024 - 7)*8/4 | |||
| *standard coefficient table | |||
| {| | {| | ||
| {{HexRow|0x00| | {{HexRow|0x00| | ||
| |°°|°°|°°|°°|°°|°°|°°|°°|08|00|00|00|02|00|01|00| | |°°|°°|°°|°°|°°|°°|°°|°°|08|00|00|00|02|00|'''01'''|'''00'''| | ||
| }} | }} | ||
| {{HexRow|0x10| | {{HexRow|0x10| | ||
| | | |'''''44'''''|'''''AC'''''|'''''00'''''|'''''00''''' | ||
| |'''A3'''|'''56'''|'''00'''|'''00''' | |||
| |'''''00'''''|'''''04''''' | |||
| |'''04'''|'''00''' | |||
| |20|00 | |||
| |'''''F4'''''|'''''03''''' | |||
| }} | }} | ||
| {{HexRow|0x20| | {{HexRow|0x20| | ||
| Line 95: | Line 124: | ||
| }} | }} | ||
| {{HexRow|0x30| | {{HexRow|0x30| | ||
| |40|00|F0|00|00|00|CC|01|30|FF|88|01|18|FF| | |40|00|F0|00|00|00|CC|01|30|FF|88|01|18|FF|°°|°°| | ||
| }} | }} | ||
| |} | |} | ||
| List of the (relatively rare) 44 kHz sounds and their OSBDs (without the .aif suffix): | |||
| *SNDDap_hit_shld (1 sound, referenced in '''OSBDap_hit_shld.grp''', present in level0) | |||
| *SNDDzap01 to SNDDzap45 (45 sounds, '''OSBDelec_detail.grp''', in level9 and level10) | |||
| *SNDDzap03, SNDDzap04, SNDDzap07, SNDDzap20, SNDDzap26, SNDDzap32 and SNDDzap40 | |||
| *:([[seven|7]] sounds, '''OSBDelecfire_detail.grp''', in level3, level4, level6, level8, level9, level10 and level18) | |||
| <center>[[OBD:SNDD|Back to SNDD]]</center> | <center>[[OBD:SNDD|Back to SNDD]]</center> | ||
| {{OBD}} | {{OBD}} | ||