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

 Share

  • Recently Browsing   0 members

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