HungryHugo

Firefox Sound issue

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.