OBD:OSBD/OSAm

From OniGalore
< OBD:OSBD
Revision as of 01:13, 9 June 2007 by Geyser (talk | contribs) (version (thanks to Neo forever))
Jump to navigation Jump to search

Minimal data, just to get the page started.

osb_r_am.gif


HexTranslationMeaning
6D 41 53 4FOSAmOni Sound Ambient
C8 00 00 00200200 bytes; size of the part that follows
06 00 00 006version (see below)
01 00 00 001 priority; the following priorities are possible (values in dec):
0 - low
1 - normal
2 - high
3 - highest
04 00 00 004 sound options bitset:
1 - interrupt tracks on stop
2 - play only once
4 - can pan
00 00 20 4110.000000unknown
00 00 80 3F1.000000minimum elapsed time in seconds
00 00 80 3F1.000000maximum elapsed time in seconds
00 00 20 4110.000000minimum volume distance
00 00 48 4250.000000maximum volume distance
not useddetail track name (reference to a .grp.OSBD file)
aircon5lpbase track 1 name (reference to 06375-aircon5lp.grp.OSBD)
not usedbase track 2 name (reference to a .grp.OSBD file)
not usedin sound name (reference to a .grp.OSBD file)
not usedout sound name (reference to a .grp.OSBD file)
03 00 00 003unknown (present in version 5 and above, default is 3)
00 00 00 000.000000unknown (present in version 6 and above, default is 0.0)
 fillernot used

(Possible field names for the "unknown" fields are: sphere radius, min. occlusion and threshold.)

Version
Just as for other OSBD, there have been several version of the binary format.
Over time, some fields that used to be hardcoded became customizeable on a group-per-group basis.
Thus, later versions include some extra fields as compared to earlier ones.
The above example belongs to the latest OSAm version encountered in Oni: 6.
Lower versions lack certain fields, and the following content is simply shifted backwards.
Versions of OSAm occurring in Oni are 4, 5 and 6.