Phaser API Documentation

  Version: 

Member of: Phaser.Device

Audio

Description:

Determines the audio playback capabilities of the device running this Phaser Game instance. These values are read-only and populated during the boot sequence of the game. They are then referenced by internal game systems and are available for you to access via this.sys.game.device.audio from within any Scene.

Properties:
name type description
audioData boolean

Can this device play HTML Audio tags?

dolby boolean

Can this device play EC-3 Dolby Digital Plus files?

m4a boolean

Can this device can play m4a files.

mp3 boolean

Can this device play mp3 files?

ogg boolean

Can this device play ogg files?

opus boolean

Can this device play opus files?

wav boolean

Can this device play wav files?

webAudio boolean

Does this device have the Web Audio API?

webm boolean

Can this device play webm files?

Type:
object
Since: 3.0.0
Source: src/device/Audio.js (Line 9)