OBD:OSBD/OSAm: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (sigh... guesses...)
 
m (version (thanks to Neo forever))
Line 8: Line 8:
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FF0000">6D&nbsp;41&nbsp;53&nbsp;4F</TD><TD>OSAm</TD><TD ALIGN=LEFT>Oni Sound Ambient</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FF0000">6D&nbsp;41&nbsp;53&nbsp;4F</TD><TD>OSAm</TD><TD ALIGN=LEFT>Oni Sound Ambient</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FFFF00">C8 00 00 00</TD><TD>200</TD><TD ALIGN=LEFT>200 bytes; size of the part that follows</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FFFF00">C8 00 00 00</TD><TD>200</TD><TD ALIGN=LEFT>200 bytes; size of the part that follows</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FFC8C8">06 00 00 00</TD><TD>6</TD><TD ALIGN=LEFT>unknown</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FFC8C8">06 00 00 00</TD><TD>6</TD><TD ALIGN=LEFT>version (see below)</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FFFFC8">01 00 00 00</TD><TD>1</TD>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FFFFC8">01 00 00 00</TD><TD>1</TD>
<TD ALIGN=LEFT>priority; the following priorities are possible (values in dec):<br>0 - low<BR>1 - normal<BR>2 - high<BR>3 - highest</TD></TR>
<TD ALIGN=LEFT>priority; the following priorities are possible (values in dec):<br>0 - low<BR>1 - normal<BR>2 - high<BR>3 - highest</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#C8FFC8">04 00 00 00</TD><TD>4</TD>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#C8FFC8">04 00 00 00</TD><TD>4</TD>
<TD ALIGN=LEFT>sound options; it's a bitset; the following bits are possible (values in dec):<br>0 - none<BR>1 - interrupt tracks on stop<BR>2 - play once<BR>4 - can pan</TD></TR>
<TD ALIGN=LEFT>sound options bitset:<br>1 - interrupt tracks on stop<BR>2 - play only once<BR>4 - can pan</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#C8FFFF">00 00 20 41</TD><TD>10.000000</TD><TD ALIGN=LEFT>unknown</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#C8FFFF">00 00 20 41</TD><TD>10.000000</TD><TD ALIGN=LEFT>unknown</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FFC8FF">00 00 80 3F</TD><TD>1.000000</TD><TD ALIGN=LEFT>minimum elapsed time in seconds</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FFC8FF">00 00 80 3F</TD><TD>1.000000</TD><TD ALIGN=LEFT>minimum elapsed time in seconds</TD></TR>
Line 19: Line 19:
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#C87C64">00 00 48 42</TD><TD>50.000000</TD><TD ALIGN=LEFT>maximum volume distance</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#C87C64">00 00 48 42</TD><TD>50.000000</TD><TD ALIGN=LEFT>maximum volume distance</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#B0C3D4" COLSPAN=2>not&nbsp;used</TD><TD ALIGN=LEFT>detail track name (reference to a [[OBD:OSBD/OSGr|.grp.OSBD]] file)</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#B0C3D4" COLSPAN=2>not&nbsp;used</TD><TD ALIGN=LEFT>detail track name (reference to a [[OBD:OSBD/OSGr|.grp.OSBD]] file)</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#E7CEA5" COLSPAN=2><TT>aircon5lp</TT></TD><TD ALIGN=LEFT>base track 1 name (reference to 06375-aircon5lp.[[OBD:OSBD/OSGr|.grp.OSBD]])</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#E7CEA5" COLSPAN=2><TT>aircon5lp</TT></TD><TD ALIGN=LEFT>base track 1 name (reference to 06375-aircon5lp[[OBD:OSBD/OSGr|.grp.OSBD]])</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FFDDDD" COLSPAN=2>not used</TD><TD ALIGN=LEFT>base track 2 name (reference to a [[OBD:OSBD/OSGr|.grp.OSBD]] file)</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FFDDDD" COLSPAN=2>not used</TD><TD ALIGN=LEFT>base track 2 name (reference to a [[OBD:OSBD/OSGr|.grp.OSBD]] file)</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#64AAAA" COLSPAN=2>not used</TD><TD ALIGN=LEFT>in sound name (reference to a [[OBD:OSBD/OSGr|.grp.OSBD]] file)</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#64AAAA" COLSPAN=2>not used</TD><TD ALIGN=LEFT>in sound name (reference to a [[OBD:OSBD/OSGr|.grp.OSBD]] file)</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#EBEBEB" COLSPAN=2>not used</TD><TD ALIGN=LEFT>out sound name (reference to a [[OBD:OSBD/OSGr|.grp.OSBD]] file)</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#EBEBEB" COLSPAN=2>not used</TD><TD ALIGN=LEFT>out sound name (reference to a [[OBD:OSBD/OSGr|.grp.OSBD]] file)</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#8C8CCC">03 00 00 00</TD><TD>3</TD><TD ALIGN=LEFT>unknown</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#8C8CCC">03 00 00 00</TD><TD>3</TD><TD ALIGN=LEFT>unknown (present in version 5 and above, default is 3)</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FF00C8">00 00 00 00</TD><TD>0.000000</TD><TD ALIGN=LEFT>unknown</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FF00C8">00 00 00 00</TD><TD>0.000000</TD><TD ALIGN=LEFT>unknown (present in version 6 and above, default is 0.0)</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#F0F096">&nbsp;</TD><TD>filler</TD><TD ALIGN=LEFT>not used</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#F0F096">&nbsp;</TD><TD>filler</TD><TD ALIGN=LEFT>not used</TD></TR>
</TABLE>
</TABLE>
Line 30: Line 30:
(Possible field names for the "unknown" fields are: sphere radius, min. occlusion and threshold.)
(Possible field names for the "unknown" fields are: sphere radius, min. occlusion and threshold.)


;Bitset at 0x08
;Version
:Occurring values and respective sizes of whole raw part
:Just as for other [[OSBD]], there have been several version of the binary format.
*4 - 200
:Over time, some fields that used to be hardcoded became customizeable on a group-per-group basis.
*5 - 204
:Thus, later versions include some extra fields as compared to earlier ones.
*6 - 208
: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.
:bit 4 - no idea... probably enables something important ^^
:Versions of OSAm occurring in Oni are 4, 5 and 6.
:bit 1 enables 1 trailing float (at 0xC8)
:bit 2 enables 2 trailing floats (at 0xC8 and 0xCC)

Revision as of 01:13, 9 June 2007

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.