Target_mp3audio
Kouji_San
Sr. Hινε UÏкεεÏεг - EUPT DeputyThe Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
<ul><li><span style='color:white'><b>How to target your mp3 sounds:</b></span>
Unlike the <b>ambient_generic</b> which automaticly looks for the *.wav files in the "/sound" directory. The <b>target_mp3audio</b> starts in the main mod directory.
To target your sounds you have to use the following:
sound/yoursound.mp3
</li><li><span style='color:white'><b>Sounds not playing when using more then 1 target_mp3audio's:</b></span>
The <b>target_mp3audio</b> has a problem if you don't give it a target name, usually if you don't have/want to trigger it you don't give it a target name, true?
<b>The solution:</b>
If the fade distance of let's say 2 <b>target_mp3audio's</b> overlap each other, only the first which was added in the editor is played, the other is muted somehow. This also happens if you check the flag "don't fade volor".
Now if you give all of them a different target name they will play their sound, and it doesn't seem that the sounds have to use a certain type of encoding
Encoding types I tested:
- 128kbps, 44khz, stereo/mono
- 128kbps, 22khz, stereo/mono
- 96kbps, 44khz, stereo/mono
- 96kbps, 22khz, stereo/mono
- 64kbps, 22khz, stereo/mono</li></ul>
<span style='color:gray'><span style='font-size:8pt;line-height:100%'><b>Update historie:</b>
<b>07-oct '04:</b>
- Rewrote the entire post
- Added the "How to target your mp3 sounds"
</span></span>
Unlike the <b>ambient_generic</b> which automaticly looks for the *.wav files in the "/sound" directory. The <b>target_mp3audio</b> starts in the main mod directory.
To target your sounds you have to use the following:
sound/yoursound.mp3
</li><li><span style='color:white'><b>Sounds not playing when using more then 1 target_mp3audio's:</b></span>
The <b>target_mp3audio</b> has a problem if you don't give it a target name, usually if you don't have/want to trigger it you don't give it a target name, true?
<b>The solution:</b>
If the fade distance of let's say 2 <b>target_mp3audio's</b> overlap each other, only the first which was added in the editor is played, the other is muted somehow. This also happens if you check the flag "don't fade volor".
Now if you give all of them a different target name they will play their sound, and it doesn't seem that the sounds have to use a certain type of encoding
Encoding types I tested:
- 128kbps, 44khz, stereo/mono
- 128kbps, 22khz, stereo/mono
- 96kbps, 44khz, stereo/mono
- 96kbps, 22khz, stereo/mono
- 64kbps, 22khz, stereo/mono</li></ul>
<span style='color:gray'><span style='font-size:8pt;line-height:100%'><b>Update historie:</b>
<b>07-oct '04:</b>
- Rewrote the entire post
- Added the "How to target your mp3 sounds"
</span></span>
Comments
Maybe Zunni can get this tweaked so it isn't such a pain?
~ DarkATi
I guess... don't use so many custom sounds then! IDK
~ DarkATi
nice explanation koji.
will try this. and maybe I will hear some more "why doesnt stopsound work properly here?" <- go away and leave my betatest! <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink-fix.gif' border='0' style='vertical-align:middle' alt='wink-fix.gif' /><!--endemo-->
Funny how learning is much more effective once you've done some hands on! <img src="style_emoticons/<#EMO_DIR#>/tounge.gif" style="vertical-align:middle" emoid=":p" border="0" alt="tounge.gif" />