phaser - v4.0.0-rc.4
    Preparing search index...

    Type Alias Audio

    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.

    type Audio = {
        aac: boolean;
        audioData: boolean;
        dolby: boolean;
        flac: boolean;
        m4a: boolean;
        mp3: boolean;
        ogg: boolean;
        opus: boolean;
        wav: boolean;
        webAudio: boolean;
        webm: boolean;
    }
    Index

    Properties

    aac: boolean

    Can this device can play aac files.

    audioData: boolean

    Can this device play HTML Audio tags?

    dolby: boolean

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

    flac: boolean

    Can this device can play flac 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?