| 05-20-2007, 08:34 PM | #1 |
I have a wierd sound problem with my JASS trigger playing sounds. It never plays the sound when it's supposed to and I have the 3d flag set and everything. It's just randomely not playing it, but then when I hit ctrl+S twice it plays the incoming sound once if i'm near it and it's currently supposed to be playing. It's really wierd. |
| 05-21-2007, 02:43 AM | #2 |
I had a problem with sounds on Units/Points. I never did get it working and never did find the right help either. I was trying to so the exact thing you are doing (code wise). Firstly, since its a periodic event that plays the sound, you might have a problem if you try and play the same global sound again if it is already playing. To stop that, create a local sound and do it that way. As for the Playing it at a point/unit, i tried everything but couldnt get it to work. Although i never did try creating the sound locally so that might be worth a shot. Oh and for a side note. You trigger is leaking. Make sure you nullify the group and location you created locally. JASS:set l = null set g = null at the end before endfunction |
| 05-21-2007, 08:25 PM | #3 |
For some reason after a minute or 2 the incoming sound plays but not the exploding sound. Thx for the help n13. |
| 05-21-2007, 08:26 PM | #4 |
Try preloading them. |
| 05-21-2007, 08:27 PM | #5 |
I think I saw somewhere that sounds do play the 1st time. |
| 05-21-2007, 08:57 PM | #6 |
Thanks for the help guys. +Rep to all that help me, as usual. They're still not playing >.>. |
| 05-21-2007, 09:29 PM | #7 |
Are you playing it as a 3d sound? Are you too far out to hear it? |
| 05-21-2007, 09:31 PM | #8 |
It's 3d and i'm not too far out to hear it. The ones at 600 my screen is centered on the unit and the ones at 2000 would play randomely and not play (I know so because it would hit much closer than the one playing but not play). Edit: I found out that it will not play MP3 sounds 3d. Thats wierd. |
| 05-21-2007, 10:11 PM | #9 |
It won't? That is weird. That might explain why my mp3 soundsets aren't working. Damn wavs. |
