Jump to content

XML:SNDD: Difference between revisions

320 bytes added ,  4 June 2013
tables for the win ....
(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===
* <Flags>
{| class="wikitable" width=100%
: PreventRepeat - forces to play different sounds if more than one permutations are present
|width=120px| '''tag'''
* <NumberOfChannels> - here you tell Oni if your sound file is mono or stereo
|width=100px| '''type'''
** 1 - 22.05 kHz, mono
| '''description'''
** 2 - 22.05 kHz, stereo
|-
** 2 - 44.1 kHz, mono '''(PC-only)'''
| <Flags>
** consequences of wrong imports:
| flag
*** 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
: PreventRepeat - forces to play different sounds if there are more than one permutations
* <Sound> - this is the sound file (for example: <font color=#AAAAAA>SNDD</font>nyan<font color=#AAAAAA>.oni</font>), file prefix and suffix aren't used
|-
|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"?>
8,013

edits