espace

again audio pause not working ?

Recommended Posts

hi,

on the example it works :

https://phaser.io/examples/v2/audio/pause-and-resume#gv

but on real it doesn't works .....?

Phaser CE 2.12.0 - on firefox and on android

var s={};
var f={}

f.create_sounds=()=>{
	s.music=game.add.audio("music");
        s.music.volume=.5;
        s.music.loopFull();
}

f.mute_sounds=()=>{
        s.music.pause(); 
}

f.create_sounds(); //ok i hear the music

setTimeout(()=>{f.mute_sounds()}, 1000);//not works

What is wrong ?

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.