Jump to content

OBD:OSBD/OSGr: Difference between revisions

m
localized image
No edit summary
m (localized image)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
http://ssg.oni2.net/images/osb_r_gr.gif
[[Image:osb_r_gr.gif]]


{{Table}}
{{Table}}
{{OBD Table Header}}
{{OBDth}}
{{OBDtr| 0x00 | 4cc    |FF0000| 72 47 53 4F | OSGr | Oni Sound Group }}
{{OBDtr| 0x00 | int32  |FF0000| 72 47 53 4F | OSGr | Oni Sound Group }}
{{OBDtr| 0x04 | int32  |FFFF00| B4 00 00 00 | 180  | size of OSGr chunk (from after this field and to the end) }}
{{OBDtr| 0x04 | int32  |FFFF00| B4 00 00 00 | 180  | size of OSGr chunk (from after this field and to the end) }}
{{OBDtr| 0x08 | bool32 |FFC8C8| 06 00 00 00 | 6    | OSGr version (see below) }}
{{OBDtr| 0x08 | int32  |FFC8C8| 06 00 00 00 | 6    | version (see below) }}
{{OBDtr| 0x0C | float  |FFFFC8| 00 00 80 3F | 1.0  | playback volume (present for version 2 and above, default is 1) }}
{{OBDtr| 0x0C | float  |FFFFC8| 00 00 80 3F | 1.0  | playback volume (present for version 2 and above, default is 1) }}
{{OBDtr| 0x10 | float  |C8FFC8| 00 00 80 3F | 1.0  | playback speed AKA pitch (present for version 3 and above, default is 1) }}
{{OBDtr| 0x10 | float  |C8FFC8| 00 00 80 3F | 1.0  | playback speed AKA pitch (present for version 3 and above, default is 1) }}
Line 11: Line 11:
{{OBDtr| 0x16 | int16  |FFC8FF| 00 00      | 0    | last selected permutation (present for version 6 and above, default is 0, used with prevent repeats) }}
{{OBDtr| 0x16 | int16  |FFC8FF| 00 00      | 0    | last selected permutation (present for version 6 and above, default is 0, used with prevent repeats) }}
{{OBDtr| 0x18 | int32  |FFC800| 01 00 00 00 | 1    | number of channels (1 or 2, same as in the sound files linked from permutations) }}
{{OBDtr| 0x18 | int32  |FFC800| 01 00 00 00 | 1    | number of channels (1 or 2, same as in the sound files linked from permutations) }}
{{OBDtr| 0x1C | int32  |C800C8| 03 00 00 00 | 3    | array size }}
{{OBDtr| 0x1C | int32  |C800C8| 03 00 00 00 | 3    | number of permutations }}
|- ALIGN=CENTER VALIGN=TOP
{{OBDtrBK|First permutation}}
|BGCOLOR="#000000" COLSPAN=5|<FONT SIZE=2 COLOR="#FFFFFF">First element detailed below.</FONT>
{{OBDtr| 0x00 | int32    |C87C64| 0A 00 00 00 | 10  | weight }}
{{OBDtr| 0x00 | int32    |C87C64| 0A 00 00 00 | 10  | weight }}
{{OBDtr| 0x04 | float    |B0C3D4| 00 00 80 3F | 1.0 | minimum volume }}
{{OBDtr| 0x04 | float    |B0C3D4| 00 00 80 3F | 1.0 | minimum volume }}
Line 19: Line 18:
{{OBDtr| 0x0C | float    |FFDDDD| 33 33 33 3F | 0.7 | minimum pitch }}
{{OBDtr| 0x0C | float    |FFDDDD| 33 33 33 3F | 0.7 | minimum pitch }}
{{OBDtr| 0x10 | float    |64AAAA| 33 33 33 3F | 0.7 | maximum pitch }}
{{OBDtr| 0x10 | float    |64AAAA| 33 33 33 3F | 0.7 | maximum pitch }}
|- ALIGN=CENTER VALIGN=TOP
{{OBDtr| 0x14 | char[32] |EBEBEB| 61 63 35... | ac5lp1.aif | permutation sound name (reference to f.e. 09376-ac5lp1.aif.[[OBD:SNDD|SNDD]] of level 3) }}
|0x14||char[32]||BGCOLOR="#EBEBEB" COLSPAN=2|<TT>ac5lp1.aif</TT>||ALIGN=LEFT|permutation sound name (reference to f.e. 09376-ac5lp1.aif.[[OBD:SNDD|SNDD]] of level 3)
|}
|}
;Number of channels
:By design the number of channels is supposed to be the same as that of the referenced SNDDs (this implies that all the SNDDs in a group are supposed to have the same channel count).
:If for whatever reason the channel counts in OSGr and SNDD are ''not'' consistent, then the behaviour depends on whether the OSGr is referenced from an OSIm or from an OSAm:
:*the channel count in an OSAm's OSGr determines the channel count of the decompressed sound buffer, therefore mono SNDDs will sound 2x higher/faster if the channel count in their OSGr is set to 2, and stereo SNDDs (e.g., music) will sound 2x lower/slower if the channel count in their OSGr is set to 1.
:*the channel count in an OSIm's OSGr seems to have no effect if the SNDDs are mono, i.e. setting the OSGr's channel count to 2 does not result in a higher pitch. As for stereo SNDDs, apparently they cannot be used in an OSIm's OSGr at all.
;Fury vocalizations
;Fury vocalizations
:Those are sped up by 1.14 in Oni, which explains why they sound weird when exported.
:Those are sped up by 1.14 in Oni, which explains why they sound weird when exported.
Line 30: Line 33:
:The above example belongs to the latest OSGr version encountered in Oni: 6.
:The above example belongs to the latest OSGr version encountered in Oni: 6.
:Lower versions lack certain fields, and the following content is simply shifted backwards.
:Lower versions lack certain fields, and the following content is simply shifted backwards.
;Dialog from level0_Tools
[[Image:Tool dialog - Sound Group Properties.png]]
{{OBD}}