How can you detect wether any music is playing in Phaser?

Viewed 187

In my game, I want to play music sometimes. But music that is already playing shouldn’t be overridden.

So how can I

  1. Check if music is playing
  2. Manage that sound

Ideally in an global interface like this.sound

Thanks in advance

1 Answers
Related