Jump to content

Sound only works when I change tabs


Expo9
 Share

Recommended Posts

Hi I'm trying to put music in my game but there is a really weird problem 

this.music=this.add.sound('Music',1,false);this.music.addMarker('Stage1',0,75);this.music.addMarker('Stage2',75,154,1,true);

I created some Markers and then play the music in another js file

this.game.music.play('Stage1');
The weird thing is that when I start the game the music doesn't sound at any moment, but when I change to another tab in the browser (Im using Google Chrome) and wait awhile ,then come back, the music  sounds normally. 
 
I don't know what cause this   :(
 
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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