HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Replicating 3d sounds

03-23-2010, 02:49 PM#1
Tastingo
Hey I had one last big question for my JASS code. I have imported sounds for when like a paintball breaks glass, hits a player, hits a barrel, or a tree. The problem is that they are MP3 and if I understand correctly they will not play properly for everyone. If this is not the case please let me know. I'm wondering the best way to replicate it. Right now I'm using a ForGroup to loop through a group of units a certain range away and to play the sound for the owners of them. (Using Sound Utils) The problem is that it get's buggy when I get near other players, no sound plays. Not sure if the looping of the ForGroup is the problem with the sound bugginess.

Was thinking of replacing unit death sound animations with my imported sounds and making dummy units that die when the paintball splatters, and moving them to locations of the splatters. Not sure if the mp3 would also mess that up.

Would anyone be willing to help and happen to know the best solution to my 3d sound problem?

I can post some code later, don't have time right now. Was just checking if anyone knew a quick answer first.
03-23-2010, 05:25 PM#2
Ammorth
You can create 3D sounds and therefore players who are near-by will hear it. You also get the added benifit that it will mix between the left and right speaker to give it some position (sound on the left side will be louder in the left ear).

I believe its just a boolean for the CreateSound() function.
03-23-2010, 09:52 PM#3
Tastingo
The problem is that the file is mp3. I read on Sound Utils that mp3 3d sounds don't work for all people when made as a 3d sound, like wavs do.

Was not sure if you missed the mp3 part, or if you definatley do know that mp3 3d sounds work.
04-11-2010, 10:25 PM#4
Sunwarrior25
Got audacity or similar? If so, then I think you can import the sound files to audacity, then save them as '.wav' .