I have some questions regarding the usage of sounds in JASS.
Situation 1 - Lets say I declare a sound handle globally to null. Then on a function a create a sound (ex. 1.mp3) using that sound handle.. I play that sound. Then on another function I create another sound using that same sound handle (ex. 2.mp3) and also play it. Will this cause problem?
Situation 2 - i used the call startsound(s) then immediately followed by call killsoundwhendone(s). I read about it in some thread that it should play alright but then I tested it, it isnt playing. Did i do something wrong?
Situation 3 - If I want to play a sound locally? Should i create the sound inside the getlocalplayer() block then play it? I read about another approach regarding this that it used the same method for special effects. By creating a local string for the sound path to null then setting the sound path inside the getlocalplayer() block then playing the sound outside it. Which should i use?
Thanks to someone who will respond. +Rep
Situation 1 - Lets say I declare a sound handle globally to null. Then on a function a create a sound (ex. 1.mp3) using that sound handle.. I play that sound. Then on another function I create another sound using that same sound handle (ex. 2.mp3) and also play it. Will this cause problem?
Situation 2 - i used the call startsound(s) then immediately followed by call killsoundwhendone(s). I read about it in some thread that it should play alright but then I tested it, it isnt playing. Did i do something wrong?
Situation 3 - If I want to play a sound locally? Should i create the sound inside the getlocalplayer() block then play it? I read about another approach regarding this that it used the same method for special effects. By creating a local string for the sound path to null then setting the sound path inside the getlocalplayer() block then playing the sound outside it. Which should i use?
Thanks to someone who will respond. +Rep