Jump to content

Audio + CocoonJS Preload Problem


Edricus
 Share

Recommended Posts

// Audiothis.game.load.audio('bgMusic'    , 'assets/audio/DST-Blam.mp3');this.game.load.audio('splashSFX'  , 'assets/audio/Kayyy-Wave.mp3');this.game.load.audio('sparkleSFX' , 'assets/audio/Sparkle-Robinhood76.mp3');this.game.load.audio('gameOverSFX', 'assets/audio/Benboncan-SadTrombone.mp3');

So this is the code in my preload to load audio. When running it in CocoonJS Launcher app on Android I get the following warnings in this order:

 

Phaser.Loader error loading file: gameOverSFX from url null

Phaser.Loader error loading file: sparkleSFX from url null

Phaser.Loader error loading file: splashSFX from url null

Phaser.Loader error loading file: bgMusic from url null

 

Running the game through a localhost loads the audio perfectly fine which is what I find odd. Anyone have any idea?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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