Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: What is the integer argument to the playWAV trigger?
What is the integer argument to the playWAV trigger?
Mar 1 2019, 9:47 pm
By: sethmachine  

Mar 1 2019, 9:47 pm sethmachine Post #1



What is the integer in this TrigEdit trigger for playing a wav sound?

Play WAV("sound\\Protoss\\Witness\\PWiPss00.WAV", 3877);

Is it the duration of that audio file in miliseconds?

What happens if I change the number to be greater or less than the duration, will it stop short?



None.

Mar 1 2019, 10:20 pm MinuteMan Post #2



I don't know why you have a 2nd argument for that action in the 1st place tbh. PlayWAV only takes 1 argument, the filename.

Code
function PlayWAV(WAVName)
   WAVName = ParseString(WAVName)
   return Action(0, 0, WAVName, 0, 0, 0, 0, 8, 0, 4)
end





Mar 1 2019, 10:45 pm jjf28 Post #3

Cartography Artisan

It's a duration, I don't know the exact mechanics but I know the purpose is to have WAVs play more accurately when their length cannot be auto-determined; you're best off setting it to the duration, in game seconds, of the WAV.



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:56 am]
Oh_Man -- cool bit of history, spellsword creator talking about the history of EUD ^
[09:24 pm]
Moose -- denis
[05:00 pm]
lil-Inferno -- benis
[10:41 am]
v9bettel -- Nice
[2024-4-19. : 1:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[2024-4-18. : 10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[2024-4-18. : 10:11 pm]
Ultraviolet -- :P
[2024-4-18. : 10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
Please log in to shout.


Members Online: jun3hong