Jump to content

XML:SNDD: Difference between revisions

27 bytes removed ,  21 July 2012
m
no edit summary
mNo edit summary
mNo edit summary
Line 132: Line 132:


===OSBDfile.amb.xml===
===OSBDfile.amb.xml===
In case you want to create a simple sound file you can basically copy the code and change the red marked stuff.
(OSBDfile.grp.xml, OSBDfile.amb.xml, BINACJBOSound.xml are actully showing the code from the [http://mods.oni2.net/node/177 '''nyan cat mod'''].)
The .amb file can be called from BSL or from area-fixed sound object. (See level-specific file [[#BINACJBOSound.xml|BINACJBOSound.xml]].)
The .amb file can be called from BSL or from area-fixed sound object. (See level-specific file [[#BINACJBOSound.xml|BINACJBOSound.xml]].)


Line 146: Line 151:
: 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
(OSBDfile.grp.xml, OSBDfile.amb.xml, BINACJBOSound.xml are actully showing the code from the [http://mods.oni2.net/node/177 <font color=#FF0000>'''nyan</font> cat mod'''].)


  <?xml version="1.0" encoding="utf-8"?>
  <?xml version="1.0" encoding="utf-8"?>
Line 180: Line 182:


===OSBDfile.grp.xml===
===OSBDfile.grp.xml===
In case you want to create a simple sound file you can basically copy the code and change the red marked stuff.
* <Flags>
* <Flags>
: PreventRepeat - forces to play different sounds if more than one permutations are present
: PreventRepeat - forces to play different sounds if more than one permutations are present
* <NumberOfChannels> - here you tell Oni if your sound file is "1" (22.05 kHz, mono) or "2" (22.05 kHz, stereo; (PC-only:) 44.1 kHz, mono), if you set the wrong value the music will sound distorted
* <NumberOfChannels> - here you tell Oni if your sound file is "1" (22.05 kHz, mono) or "2" (22.05 kHz, stereo; (PC-only:) 44.1 kHz, mono), if you set the wrong value the music will sound distorted
* <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
* <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


  <?xml version="1.0" encoding="utf-8"?>
  <?xml version="1.0" encoding="utf-8"?>
8,174

edits