Jump to content

Firefox Sound issue


HungryHugo
 Share

Recommended Posts

Hello,

 

I've got an issue stopping audio on Firefox. On Chrome ore Edge stopping the Sound works fine but Firefox won't stop the sound and if you start the Sound again it'll play twice. The main intention was to stop the sound when the state shuts down but it doesn't work when I bind the command to a key aswell. It's really annoying and I couldn't find a fix anywhere.

I start the sound in the Create function with

music = game.add.audio('background_music');
music.play();
music.loopFull(0.3);
music.volume = 0.3;

 

and try to stop it in the Shutdown function with "music.stop();"

 

You can also try it yourself HERE

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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