UNPKG

phaser

Version:

A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers from the team at Phaser Studio Inc.

26 lines (24 loc) 744 B
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * The Audio Data Decoded Event. * * This event is dispatched by the Web Audio Sound Manager as a result of calling the `decodeAudio` method. * * Listen to it from the Sound Manager in a Scene using `this.sound.on('decoded', listener)`, i.e.: * * ```javascript * this.sound.on('decoded', handler); * this.sound.decodeAudio(key, audioData); * ``` * * @event Phaser.Sound.Events#DECODED * @type {string} * @since 3.18.0 * * @param {string} key - The key of the audio file that was decoded and added to the audio cache. */ module.exports = 'decoded';