8,484
edits
m (→OSBDfile.grp.xml:  wording)  | 
				Paradox-01 (talk | contribs)   (tables for the win ....)  | 
				||
| Line 25: | Line 25: | ||
: .wav  | : .wav  | ||
: 22.05KHz (mono / stereo) or 44.1KHz (mono)  | : 22.05KHz (mono / stereo) or 44.1KHz (mono)  | ||
: uncompressed (PCM) or compressed (MS-ADPCM)  | : 16-bit uncompressed (PCM) or compressed (MS-ADPCM)  | ||
|valign=top|  | |valign=top|  | ||
: .aif / .aifc / .afc  | : .aif / .aifc / .afc  | ||
| Line 156: | Line 156: | ||
: CanPan  | : CanPan  | ||
* <BaseTrack1> - this links to the .grp file (for example: <font color=#AAAAAA>OSBD</font>nyan<font color=#AAAAAA>.grp.oni</font>), file prefix and suffix aren't used  | * <BaseTrack1> - this links to the .grp file (for example: <font color=#AAAAAA>OSBD</font>nyan<font color=#AAAAAA>.grp.oni</font>), file prefix and suffix aren't used  | ||
An example:  | |||
  <?xml version="1.0" encoding="utf-8"?>  |   <?xml version="1.0" encoding="utf-8"?>  | ||
| Line 187: | Line 190: | ||
===OSBDfile.grp.xml===  | ===OSBDfile.grp.xml===  | ||
{| class="wikitable" width=100%  | |||
: PreventRepeat - forces to play different sounds if more than one permutations   | |width=120px| '''tag'''  | ||
|width=100px| '''type'''  | |||
| '''description'''  | |||
|-  | |||
| <Flags>  | |||
| flag  | |||
|  | |||
: PreventRepeat - forces to play different sounds if there are more than one permutations  | |||
|-  | |||
|valign="top"| <NumberOfChannels>  | |||
|valign="top"| integer  | |||
| Here you tell Oni if your sound file is mono or stereo. Windows' 44.1 kHz is an exception.  | |||
{|class="wikitable" width="100%"  | |||
!  | |||
! 22.05 kHz, mono  | |||
! 22.05 kHz, stereo  | |||
! 44.1 kHz, mono '''(PC-only)'''  | |||
|-  | |||
|align="center"| NumberOfChannels  | |||
|align="center"| 1  | |||
|align="center"| 2  | |||
|align="center"| '''2'''  | |||
|}  | |||
;consequences of wrong imports:  | |||
: if grp's <NumberOfChannels> is 1 and sound file is 22.05 kHz, stereo then the sound won't get played  | |||
: if grp's <NumberOfChannels> is 1 and sound file is 44.1 kHz, mono then the sound will play distorted  | |||
|-  | |||
| <Sound>  | |||
| char[32]  | |||
| <font color=#AAAAAA>SNDD</font>name<font color=#AAAAAA>.oni</font>, file prefix and suffix aren't used  | |||
|}  | |||
An example:  | |||
  <?xml version="1.0" encoding="utf-8"?>  |   <?xml version="1.0" encoding="utf-8"?>  | ||
edits