[General] Correctly playing sounds

Status
Not open for further replies.
Level 15
Joined
Aug 7, 2013
Messages
1,342
Hi,

Is the following ok for playing an instance of a sound?

JASS:
....
call StartSound(gg_snd_mySound)
...

or should I always call a special native to clean up the sound?

JASS:
....
call StartSound(gg_snd_mySound)
call KillSoundWhenDone(gg_snd_mySound)
...

Note that I'll be continuing to play this sound when a player does some action--it's not a one time thing...
 
KillSoundWhenDone is a modified version of destroying sound, if you will use sound handle again you don't need it.
 
Status
Not open for further replies.
Back
Top