Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Wavs are playing twice! (Phantom Wavs?)
Wavs are playing twice! (Phantom Wavs?)
Oct 5 2014, 3:16 am
By: Zoan  

Oct 5 2014, 3:16 am Zoan Post #1

Math + Physics + StarCraft = Zoan

I'm trying to add in sound for attacks in a turn based RPG, and some of the wavs are playing at the right time but are also sometimes playing AGAIN a second or two later.

I added a 'display text' trigger to the trigger that is playing the wav to see if it is the trigger running twice, and it turns out that the trigger is NOT running twice, but the wav is still occasionally playing twice (a second or two after it plays once).

Also, the trigger is set for force 1, which contains 4 players. I am hearing the 'phantom wav' while playing alone, and have not tested it with multiple people to see if the problem persists yet.

I'm using 13.6% of the max strings, and am at 319/1024 for individual strings. There are also a butt-load of triggers.. there are 92872 lines in the trigedit thing.

Why is the wav playing twice, and how do I fix it?



\:rip\:ooooo\:wob\:ooooo \:angel\: ooooo\:wob\:ooooo\:rip\:

Oct 5 2014, 3:22 am Roy Post #2

An artist's depiction of an Extended Unit Death

I could be mistaken, but I recall hearing about an issue where very short wavs can play twice in SC. The solution is to add some dead space to the end of the wav to make it longer (make it at least one second long). Try giving that a go.




Oct 5 2014, 2:10 pm NudeRaider Post #3

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

You should post the triggers for analysis.

Post has been edited 1 time(s), last time on Oct 5 2014, 7:57 pm by NudeRaider. Reason: overlooked a vital part




Oct 5 2014, 4:26 pm Sacrieur Post #4

Still Napping

I'm having trouble replicating your problem. How long is the wav?



None.

Oct 5 2014, 5:37 pm Zoan Post #5

Math + Physics + StarCraft = Zoan

It's just less than 0.16 seconds

Attachments:
Hit.wav
Hits: 2 Size: 13.77kb



\:rip\:ooooo\:wob\:ooooo \:angel\: ooooo\:wob\:ooooo\:rip\:

Oct 5 2014, 6:46 pm Zoan Post #6

Math + Physics + StarCraft = Zoan

At the risk of later finding out I'm wrong, I think the problem is fixed. I added some blank noise to the end of the wav, and so far haven't heard it play twice.



\:rip\:ooooo\:wob\:ooooo \:angel\: ooooo\:wob\:ooooo\:rip\:

Oct 6 2014, 4:09 pm Oh_Man Post #7

Find Me On Discord (Brood War UMS Community & Staredit Network)

Quote from Roy
I could be mistaken, but I recall hearing about an issue where very short wavs can play twice in SC. The solution is to add some dead space to the end of the wav to make it longer (make it at least one second long). Try giving that a go.
This was the exact same problem I had and that solution worked.

For whatever reason small WAVs do this, and the solution is just to fill out the length of the WAV.

http://www.staredit.net/topic/16343/




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[11:43 pm]
Moose -- you don't
[10:06 pm]
Zoan -- how do i get minerals
[2026-4-14. : 11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[2026-4-13. : 10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[2026-4-13. : 9:37 pm]
IskatuMesk -- I have never and will never own a phone
[2026-4-13. : 9:15 pm]
NudeRaider -- Vrael ranting still is though
[2026-4-13. : 9:14 pm]
ClansAreForGays -- anticapitalism isnt edgy anymore
[2026-4-13. : 3:31 pm]
Vrael -- it only costs 50% of my post-tax salary for life and in return I get to also become a drone whose sole purpose is CAPITALISM
[2026-4-13. : 3:30 pm]
Vrael -- pssht, you're still using a phone? I just record 100% of my life using my ElonBrainChip
Please log in to shout.


Members Online: IskatuMesk, anoeth47, DarkenedFantasies