Jump to content

XML:SNDD: Difference between revisions

691 bytes removed ,  11 July 2011
m
making nicer tables
m (always forgetting something)
m (making nicer tables)
Line 7: Line 7:
: '''''How do I get sounds into Oni?'''''
: '''''How do I get sounds into Oni?'''''


==Source file requirements==
'''In order to make your sounds available on both sides - pc and mac - you need to create them twice (one time from a wav source and another time from an aif/aifc/afc source).'''
First of, your sound files must meet these features:
 
 
==Source file creation==
These are the requirements of your source file(s).


{|
{|
Line 26: Line 29:




==Helpful conversion tools==
To create suitable files you could use audacity and its ffmpeg Export Library.
In order to make your sounds available on both sides - pc and mac - you need to create them twice (one time from a wav source and another time from an aif/aifc/afc source).


{|
{{table}}
|width=33%|download
|'''PC version'''
|'''Mac version'''
|-
|width=33%|audacity
|[http://audacity.sourceforge.net/download/beta_windows#recdown link]
|[http://audacity.sourceforge.net/download/beta_mac#recdown link]
|-
|ffmpeg Export Library
|[http://manual.audacityteam.org/index.php?title=FAQ:Installation_and_Plug-Ins#installffmpeg link]
|[http://manual.audacityteam.org/index.php?title=FAQ:Installation_and_Plug-Ins#installffmpeg link]
|-
|mirrored links
|[http://dl.dropbox.com/u/139715/OniGalore/audacity%2BFFmpeg_library_for_PC.zip audacity (1.3 beta) + library]
|[http://dl.dropbox.com/u/139715/OniGalore/audacity%2BFFmpeg_library_for_MAC.zip audacity (1.3 beta) + library]
|-
|valign=top|installation
|colspan=2|After you installed Audacity and the library goto '''Audacity > Preferences... > Libraries''' - click on Locate... button and find the installed library file.
|-
|valign=top|source file creation
|'''wav''' for PC oni file


===for PC===
To create suitable files you could use [http://audacity.sourceforge.net/download/beta_windows#recdown audacity] and its [http://manual.audacityteam.org/index.php?title=FAQ:Installation_and_Plug-Ins#installffmpeg ffmpeg Export Library]. '''(No size limit of source file.)'''


After you installed both goto Audacity > Preferences... > Libraries - click on Locate... button and find the installed library file.
Open your sound file then goto File > Export... > Save As: '''''yourfile.<font color="#CC0000">wav</font>'''''; Format: Custom FFmpeg Export; Options... > wav; '''pcm_s16le'''; Sample Rate: 22050; OK and save the file<br>(adpcm_ms doesn't work with Audacity 1.3 Beta)


'''wav''': Open your sound file then goto File > Export... > Save As: yourfile.wav; Format: Custom FFmpeg Export; Options... > wav; '''pcm_s16le'''; Sample Rate: 22050; OK and save the file<br>(adpcm_ms doesn't work with Audacity 1.3 Beta)
[http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/Audacity_wav.png http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/Audacity_wav_tn.png]
|'''aif''' for Mac oni file


'''aif''': Open your sound file then goto File > Export... > Save As: yourfile.aif; Format: Custom FFmpeg Export; Options... > aiff; adpcm_ima_qt; Sample Rate: 22050; OK and save the file


Open your sound file then goto File > Export... > Save As: '''''yourfile.<font color="#CC0000">aif</font>'''''; Format: Custom FFmpeg Export; Options... > aiff; adpcm_ima_qt; Sample Rate: 22050; OK and save the file


[http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/Audacity_wav.png http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/Audacity_wav_tn.png] [http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/Audacity.png http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/Audacity_tn.png]
[http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/Audacity.png http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/Audacity_tn.png]
 
|}


<!--
----
----


Line 54: Line 79:


----
----
-->


==Oni file creation==
===via GUI===
When you're done you can use [http://mods.oni2.net/node/72 Onisplit GUI] to convert yourfile.aif/.wav, OSBDyourfile.grp.xml and OSBDyourfile.amb.xml to the .oni-file formate.


When you're done you can use [http://mods.oni2.net/node/72 Onisplit GUI] to convert yourfile.aif/.wav, OSBDyourfile.grp.xml and OSBDyourfile.amb.xml to the .oni-file formate. Use the "manual command input":
===via command lines===
 
onisplit
: -create output_directory_'''MAC''' input_directory/'''*.aif'''
: -create output_directory_'''MAC''' input_directory/'''*.aif'''
: -create output_directory_'''PC''' input_directory/'''*.wav'''
: -create output_directory_'''PC''' input_directory/'''*.wav'''
Line 65: Line 94:
: <font color=#AAAAAA>OSBD</font>yourfile<font color=#AAAAAA>'''.grp'''.oni</font>
: <font color=#AAAAAA>OSBD</font>yourfile<font color=#AAAAAA>'''.grp'''.oni</font>
: <font color=#AAAAAA>OSBD</font>yourfile<font color=#AAAAAA>'''.amb'''.oni</font>
: <font color=#AAAAAA>OSBD</font>yourfile<font color=#AAAAAA>'''.amb'''.oni</font>
Music tracks can be split into several parts. However, I'd say do that only if you know what you are doing. If you are going to split music track look [[#OSBD information|here]].
===for MAC===
To create suitable sound files you could use [http://audacity.sourceforge.net/download/beta_mac#recdown audacity] and its [http://manual.audacityteam.org/index.php?title=FAQ:Installation_and_Plug-Ins#installffmpeg ffmpeg Export Library].
After you installed both goto Audacity > Preferences... > Libraries - click on Locate... button and find the installed library file.
'''wav''': Open your sound file then goto File > Export... > Save As: yourfile.wav; Format: Custom FFmpeg Export; Options... > wav; '''pcm_s16le'''; Sample Rate: 22050; OK and save the file<br>(adpcm_ms doesn't work with Audacity 1.3 Beta)
'''aif''': Open your sound file then goto File > Export... > Save As: yourfile.aif; Format: Custom FFmpeg Export; Options... > aiff; adpcm_ima_qt; Sample Rate: 22050; OK and save the file
[http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/Audacity_wav.png http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/Audacity_wav_tn.png] [http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/Audacity.png http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/Audacity_tn.png]




8,201

edits