OBD:OSBD/OSAm: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (version (thanks to Neo forever))
No edit summary
Line 1: Line 1:
Minimal data, just to get the page started.
http://ssg.oni2.net/images/osb_r_am.gif


http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/osb_r_am.gif
{{Table}}
 
{{OBDth}}
 
{{OBDtr| 0x00 | int32 |FF0000| 6D 41 53 4F | OSAm |Oni Sound Ambient }}
<TABLE BORDER=0 WIDTH=100% CELLPADDING=2 CELLSPACING=1 BGCOLOR="#000000">
{{OBDtr| 0x04 | int32 |FFFF00| C8 00 00 00 | 200 |200 bytes; size of the part that follows }}
<TR ALIGN=CENTER BGCOLOR="#FFDDBB"><TD WIDTH=15%><B>Hex</B></TD><TD WIDTH=15%><B>Translation</B></TD><TD WIDTH=70%><B>Meaning</B></TD></TR>
{{OBDtr| 0x08 | int32 |FFC8C8| 06 00 00 00 | 6   |version (see below) }}
<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>
{{OBDtr| 0x0c | int32 |FFFFC8| 01 00 00 00 | 1   |priority; the following priorities are possible (values in dec):
<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>
:0 - low
<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>
:1 - normal
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FFFFC8">01 00 00 00</TD><TD>1</TD>
:2 - high
<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>
:3 - highest }}
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#C8FFC8">04 00 00 00</TD><TD>4</TD>
{{OBDtr| 0x10 | int32    |C8FFC8| 04 00 00 00 | 4         |sound options:
<TD ALIGN=LEFT>sound options bitset:<br>1 - interrupt tracks on stop<BR>2 - play only once<BR>4 - can pan</TD></TR>
:1 - interrupt tracks on stop
<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>
:2 - play only once
<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>
:4 - can pan }}
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FFC800">00 00 80 3F</TD><TD>1.000000</TD><TD ALIGN=LEFT>maximum elapsed time in seconds</TD></TR>
{{OBDtr| 0x14 | float    |C8FFFF| 00 00 20 41 | 10.000000 | unknown }}
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#C800C8">00 00 20 41</TD><TD>10.000000</TD><TD ALIGN=LEFT>minimum volume distance</TD></TR>
{{OBDtr| 0x18 | float    |FFC8FF| 00 00 80 3F | 1.000000 | minimum elapsed time in seconds }}
<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>
{{OBDtr| 0x1c | float    |FFC800| 00 00 80 3F | 1.000000 | maximum elapsed time in seconds }}
<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>
{{OBDtr| 0x20 | float    |C800C8| 00 00 20 41 | 10.000000 | minimum volume distance }}
<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>
{{OBDtr| 0x24 | float    |C87C64| 00 00 48 42 | 50.000000 | maximum volume distance }}
<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>
{{OBDtr| 0x28 | char[32] |B0C3D4| 00...      | not used | detail track name (reference to a [[OBD:OSBD/OSGr|.grp.OSBD]] file) }}
<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>
{{OBDtr| 0x48 | char[32] |E7CEA5| 61 69 72... | aircon5lp | base track 1 name (reference to 06375-aircon5lp[[OBD:OSBD/OSGr|.grp.OSBD]]) }}
<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>
{{OBDtr| 0x68 | char[32] |FFDDDD| 00...      | not used | base track 2 name (reference to a [[OBD:OSBD/OSGr|.grp.OSBD]] file) }}
<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>
{{OBDtr| 0x88 | char[32] |64AAAA| 00...      | not used | in sound name (reference to a [[OBD:OSBD/OSGr|.grp.OSBD]] file) }}
<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>
{{OBDtr| 0xa8 | char[32] |EBEBEB| 00...      | not used | out sound name (reference to a [[OBD:OSBD/OSGr|.grp.OSBD]] file) }}
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#F0F096">&nbsp;</TD><TD>filler</TD><TD ALIGN=LEFT>not used</TD></TR>
{{OBDtr| 0xc8 | int32    |8C8CCC| 03 00 00 00 | 3         | unknown (present in version 5 and above, default is 3) }}
</TABLE>
{{OBDtr| 0xcc | float    |FF00C8| 00 00 00 00 | 0.000000 | unknown (present in version 6 and above, default is 0.0) }}
|}


(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.)

Revision as of 09:59, 30 January 2008

osb_r_am.gif

Offset Type Raw Hex Value Description
0x00 int32 6D 41 53 4F OSAm Oni Sound Ambient
0x04 int32 C8 00 00 00 200 200 bytes; size of the part that follows
0x08 int32 06 00 00 00 6 version (see below)
0x0c int32 01 00 00 00 1 priority; the following priorities are possible (values in dec):
0 - low
1 - normal
2 - high
3 - highest
0x10 int32 04 00 00 00 4 sound options:
1 - interrupt tracks on stop
2 - play only once
4 - can pan
0x14 float 00 00 20 41 10.000000 unknown
0x18 float 00 00 80 3F 1.000000 minimum elapsed time in seconds
0x1c float 00 00 80 3F 1.000000 maximum elapsed time in seconds
0x20 float 00 00 20 41 10.000000 minimum volume distance
0x24 float 00 00 48 42 50.000000 maximum volume distance
0x28 char[32] 00... not used detail track name (reference to a .grp.OSBD file)
0x48 char[32] 61 69 72... aircon5lp base track 1 name (reference to 06375-aircon5lp.grp.OSBD)
0x68 char[32] 00... not used base track 2 name (reference to a .grp.OSBD file)
0x88 char[32] 00... not used in sound name (reference to a .grp.OSBD file)
0xa8 char[32] 00... not used out sound name (reference to a .grp.OSBD file)
0xc8 int32 03 00 00 00 3 unknown (present in version 5 and above, default is 3)
0xcc float 00 00 00 00 0.000000 unknown (present in version 6 and above, default is 0.0)

(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.