KevinnFtw

Audio doesn't seem to load/work at all in Google Chrome (latest)

Recommended Posts

Hi all,

 

So I'm trying to add background music to my game, and I've provided phaser with a .ogg and a .mp3 file so it has a fallback.

Problem is, the audio doesn't play/load at all in Google Chrome (latest build).

 

In Firefox the audio is working fine for me.

 

I've looked at some examples on examples.phaser.io and added the audio the same way they did there, like this:

game.load.audio('backgroundMusic', ['assets/audio/TakingFlight.mp3', 'assets/audio/TakingFlight.ogg']);

Later in the javascript I play the music using this code:

backgroundMusic = game.add.audio('backgroundMusic');backgroundMusic.play('', 0, 1, true);

Any suggestions / ideas?

 

I've added the mp3 file of the background music in this post, wasn't allowed to upload the ogg..

TakingFlight.mp3

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.