Jump to content

Browser support check and game.add.audio


Rudrabhoj Bhati
 Share

Recommended Posts

When we load the audio files like this:

this.local_control.game.load.audio('harvest_festival',
        ['assets/audio/m4a/01 Town_-_Harvest_Festival.m4a',
        'assets/audio/ogg/01 Town_-_Harvest_Festival.ogg']);

Users have to download both the m4a files and the ogg file, or they will download only the m4a file when support is available, and only ogg when while m4a support is unavailable ogg support is positive? Or such checks would need manual addition?

Link to comment
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...
 Share

  • Recently Browsing   0 members

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