9 years ago by dungeonmaster
crushRock : new ig.Sound( 'media/rock.ogg',false ),
Later in the game, I only want to play this sound, if it's not already being played. So I need something like this:
if (!this.crushRock.isBeingPlayed()) { this.crushRock.play(); } else { // Do nothing }
So is there a way to understand, if this sound is currently being played or not ?