Page 1 of 1

How do I check if a audio source is playing or not?

Posted: Thu Aug 08, 2013 6:19 am
by GalacticPixelStudios
I've rummaged through the wiki. I've searched through the forums.
I still don't have any solid information of how to check whether a sound is playing.

I need some sort of boolean that will return true or false in accordance to a sound being played or not.

I've been trying to use "Source:isPlaying" only to have it return as the error: attempt to call method 'isPlaying' (a nil value)


I'll accept any tutorial links with relevance! :)

Re: How do I check if a audio source is playing or not?

Posted: Thu Aug 08, 2013 6:46 am
by raidho36
So I suppose you've checked the wiki, but not carefully enough. That's because there's no "isPlaying". There's only "isPaused" and "isStopped". If sound is not stopped and is not paused, then it's played, by definition.

Re: How do I check if a audio source is playing or not?

Posted: Sun Aug 11, 2013 11:38 am
by jjmafiae
the isPlaying will first arrive in 0.9.0 make sure to read before posting and this is also the wrong forum (post in support & dev)