HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

3D sound help

05-31-2009, 04:00 PM#1
raid1000
I'm having problems using 3D sounds at points...
I picked a sound from wc3 mpq, set it to 3D, loop and made a trigger that played it at a certain location > didn't work
then i used music from wc3 mpq and set it to 3D sound but it didn't play either...
What am i doing wrong? is there a 3D sounds tutorial somewhere?
note: 3D sounds option is checked in the sound options menu
05-31-2009, 04:59 PM#2
Sunwarrior25
Few Questions:
  1. Are your speakers turned up? Can you here normal Wc3 sounds?
  2. Is your sound imported or from the game?
    • If imported:
      • What is the size of the sound file? If it's 0 then something didn't get imported right.
  3. Is your sound's volume up enough?
  4. Is your sound's cutoff distance considerably greater than 0?
  5. Are you just setting it? or are you setting it then playing it?
  6. Are you destroying the variable anywhere?
  7. Is it already being used? (i.e. a Region's ambient sound)
  8. Is the player's camera anywhere near where the sound gets played?
  9. Doesn't happen often, but it happens to me sometimes. If you are playing it from a preplaced region: Did your region glitch and only create the name (and just the name) in the setup? No, wait! You'd get a compile error if that was the case.

Hmm... that's the questions I can think of off of the top of my head. Anyone want to join in?
05-31-2009, 05:03 PM#3
0zyx0
I don't have a lot of experience with sounds, but I believe sounds do not play the first time they are supposed to be played. That can be solved by preloading them somehow, I think by playing then at map initialization.
09-19-2009, 11:20 AM#4
MeTaCo
u cannot load sounds from map initilization, I'm having same difficulties too.. but definately can't preload them in the start, it won't work!
09-19-2009, 11:46 AM#5
Hans_Maulwurf
I think i read in some SoundUtils library that mp3 doesnt work for 3d sounds, so you have to use wav. But I'm not 100% sure and can't find that thread

edit:
http://www.wc3c.net/showthread.php?t=107433
Quote:
//* Sounds suck for a few reasons. First of all, 3-D sounds are incredibly picky
//* on if they will run. All 3-D sounds must be .wav format, as .mp3 simply will
//* not work. Furthermore, they should all be saved with a WAV codec, whatever
//* program that made them. Also, one of the biggest flaws with sounds made in
//* the Sound Editor is that you cannot play multiple instances of them at once.
09-19-2009, 02:48 PM#6
Rising_Dusk
Yeah, I updated that eventually, read further in the documentation.
Collapse JASS:
//* mp3 files can be used as 3D sounds in the specific case where your computer
//* supports "Dolby Surround" and that option is selected in your WC3's Sound
//* Options. In the event that your computer doesn't support this, you will need
//* to use .wav files for your 3D sounds. This limitation makes .wav sounds
//* important for the general mapmaker, since they run both with and without
//* Dolby Surround. This library supports sounds of either type.
mp3's will only work for 3D sounds if you have Dolby Surround in use, otherwise with the other options the mp3 codec isn't supported and you will need to use .wav files.