Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

6 years ago by afflicto

I need a way to check whether a sound is playing or not.

Do I have to implement my own code for that or is there a 'sound.isPlaying()' method or property?

6 years ago by Joncom

You would have to check this yourself I believe. Should be straight forward though.

Instances of ig.Sound have a property called currentClip, which is an audio object. All audio objects have currentTime and duration properties.

If currentTime is greater than zero and less than duration chances are the sound has not finished playing.

6 years ago by afflicto

Ah, ok. If I have access to an audio object, then I'm good! impact docs don't say anything about the audio object :\
Page 1 of 1
« first « previous next › last »