Jump to content

Stop Audio


brentstrandy
 Share

Recommended Posts

Simple question: Is there a way to stop all sounds that are currently playing? I'm not looking to mute.

Details: I have background music that plays on a loop and will continue to play thru Phaser state changes. I'd like to start the music in one state and end the music in another state. Without passing a reference to the audio object between states, can I do something like: game.sound.<something> to get a reference to all currently playing sounds? Or maybe just a method that says game.sound.stopAllMusic?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...