5,389
edits
(getting it right about PC demo format (again) etc) |
(→Role of frame count on Mac: Oni Trailer data) |
||
Line 305: | Line 305: | ||
It has been verified (on the main menu music) that in PC Oni (both demo and retail) SNDDs are looped/chained accurately based on the actual sample count (and not on an approximate number of game ticks). Mac Oni probably ''does'' use game ticks, ending each segment slightly early. This eliminates pops that would be caused by a full playback of the IMA4 padding at the end of a segment, followed by the initial transient of the next segment. Early segment end would also be perceived as either a slight pop or a slightly "rushed" beat, but ingame it would be barely noticeable. If a Mac user can record his/her main menu theme playing for half a minute or so, then the resulting audio would be sufficient to validate or invalidate the "early cut" hypothesis. | It has been verified (on the main menu music) that in PC Oni (both demo and retail) SNDDs are looped/chained accurately based on the actual sample count (and not on an approximate number of game ticks). Mac Oni probably ''does'' use game ticks, ending each segment slightly early. This eliminates pops that would be caused by a full playback of the IMA4 padding at the end of a segment, followed by the initial transient of the next segment. Early segment end would also be perceived as either a slight pop or a slightly "rushed" beat, but ingame it would be barely noticeable. If a Mac user can record his/her main menu theme playing for half a minute or so, then the resulting audio would be sufficient to validate or invalidate the "early cut" hypothesis. | ||
For what it's worth, the two segments of the main menu theme, '''SNDDmus_ot6.aif''' and '''SNDDmus_ot7.aif''' do ''not'' have the exact same duration (sample count) - and not even the same frame count (415 frames for '''SNDDmus_ot6''' vs 414 frames for '''SNDDmus_ot7''') -, although musically they're both supposed to consist of four 4:4 bars. So, even for the main menu theme, and even on PC where playback is seamless (no dropped samples), the | For what it's worth, the two segments of the main menu theme, '''SNDDmus_ot6.aif''' and '''SNDDmus_ot7.aif''' do ''not'' have the exact same duration (sample count) - and not even the same frame count (415 frames for '''SNDDmus_ot6''' vs 414 frames for '''SNDDmus_ot7''') -, although musically they're both supposed to consist of four 4:4 bars. So, even for the main menu theme, and even on PC where playback is seamless (no dropped samples), the musical segments themselves can have wrong timing at the end (one tick early or late), and you really can't tell that anything is off: | ||
{{divhide|Main menu theme | {{divhide|Main menu theme a.k.a. "Oni Trailer"}} | ||
{| | {| | ||
| | | | ||
Line 317: | Line 317: | ||
| | | | ||
:'''SNDDmus_ot6''' | :'''SNDDmus_ot6''' | ||
: | :415 frames = 6.9166667 seconds | ||
:~= ''' | :~= '''152512.5''' samples (@ 22.05 kHz) | ||
| | | | ||
: | :0x25B0C = 154380 = 150x1024 + 780 bytes | ||
:= | := 150x1012 + 768 = '''152568''' stereo samples | ||
:= | := 6.919183673469388 s (@ 22.05 kHz) | ||
| | | | ||
: | :0x27940 = 162112 = 4768x34 bytes | ||
:= | := 2384x64 = '''152576''' stereo samples | ||
:= | := 6.919546485260771 s (@ 22.05 kHz) | ||
| | | | ||
:As compared to the PC version of the SNDD, | :As compared to the PC version of the SNDD, | ||
:the Mac version has | :the Mac version has 8 extra samples at the end | ||
:(i.e., the last | :(i.e., the last 4 bytes of the last two blocks). | ||
|- | |- | ||
| | | | ||
:'''SNDDmus_ot7''' | :'''SNDDmus_ot7''' | ||
414 frames = 6.9 seconds | |||
:~= ''' | :~= '''152145''' samples (@ 22.05 kHz) | ||
| | | | ||
: | :0x25A3C = 154172 = 150x1024 + 572 bytes | ||
:= | := 150x1012 + 560 = '''152360''' stereo samples | ||
:= | := 6.909750566893424 s (@ 22.05 kHz) | ||
| | | | ||
: | :0x27874 = 161908 = 4762x34 bytes | ||
:= | := 2381x64 = '''152384''' stereo samples | ||
:= | := 6.910839002267574 s (@ 22.05 kHz) | ||
| | | | ||
:As compared to the PC version of the SNDD, | :As compared to the PC version of the SNDD, | ||
Line 351: | Line 351: | ||
|} | |} | ||
{{divhide|end}} | {{divhide|end}} | ||
==PCM export== | ==PCM export== |