18,700
edits
m (moving explanation of <Weight> from the music discussion to the taunt discussion since it's actually used for taunts) |
m (added note about where the Mac/Win sounds will go in a package; a little more explanation on running the Mac shell script) |
||
Line 5: | Line 5: | ||
==General information== | ==General information== | ||
*The XML on this page is based on OniSplit '''v0.9.61.0'''. | *The XML on this page is based on OniSplit '''v0.9.61.0'''. | ||
*In order to make your sounds work on both Windows and Mac, you need to create | *In order to make your sounds work on both Windows and Mac, you need to create the .oni files twice (one time from a WAV source and another time from an AIFF source). The AIFF .oni files will go in the mac_only/ folder and the WAV .oni files will go in the win_only/ folder as described on [[Making a mod package]]. | ||
==Source file creation== | ==Source file creation== | ||
Line 37: | Line 37: | ||
ffmpeg -i input.wav -acodec adpcm_ima_qt -ar 22050 output.aif | ffmpeg -i input.wav -acodec adpcm_ima_qt -ar 22050 output.aif | ||
The order of arguments is critical: the rate and encoding are being applied to the outputted file, whereas if they came before the input file's name they would be instructions on how to read the input sound. Here is a simple Unix shell script for converting a folder of sounds from WAV to the AIFF format suitable for importing | The order of arguments is critical: the rate and encoding are being applied to the outputted file, whereas if they came before the input file's name they would be instructions on how to read the input sound. Here is a simple Unix shell script for converting a folder of sounds from WAV to the AIFF format suitable for importing. Save the script as "convert_sounds.sh", make sure that IN_DIR and OUT_DIR are set to the correct values, and run the script in Terminal with the command "sh convert_sounds.sh". | ||
#!/bin/sh<br /> | #!/bin/sh<br /> | ||
Line 54: | Line 54: | ||
==The .aif suffix== | ==The .aif suffix== | ||
When you are replacing existing Oni sounds, note that all of Oni's SNDD resources possess a ".aif" suffix as part of their <u>actual resource names</u> (yes, even the WAV-encoded sounds in Windows Oni). So if you import them with a name like "SNDDgears.aif", the file suffix gets changed to ".oni" upon import by OniSplit | When you are replacing existing Oni sounds, note that all of Oni's SNDD resources possess a ".aif" suffix as part of their <u>actual resource names</u> (yes, even the WAV-encoded sounds in Windows Oni). So if you import them with a name like "SNDDgears.aif", the file suffix gets changed to ".oni" upon import by OniSplit and you end up with a resource simply titled "SNDDgears" in-game. Existing resources in Oni link to a sound titled "SNDDgears.aif", thus nothing will play. If you supply an AIFF file called "SNDDgears.aif.aif" or a WAV file called "SNDDgears.aif.wav", OniSplit will create the file "SNDDgears.aif.oni" and Oni will find the resource named "SNDDgears.aif" that it's seeking. | ||
==.oni file creation== | ==.oni file creation== |