Jump to content

again audio pause not working ?


espace
 Share

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 ?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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