phaser
Version:
A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers from the team at Phaser Studio Inc.
28 lines (26 loc) • 872 B
JavaScript
/**
* @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 All Event.
*
* This event is dispatched by the Web Audio Sound Manager as a result of calling the `decodeAudio` method,
* once all files passed to the method have been decoded (or errored).
*
* Use `Phaser.Sound.Events#DECODED` to listen for single sounds being decoded, and `DECODED_ALL` to
* listen for them all completing.
*
* Listen to it from the Sound Manager in a Scene using `this.sound.on('decodedall', listener)`, i.e.:
*
* ```javascript
* this.sound.once('decodedall', handler);
* this.sound.decodeAudio([ audioFiles ]);
* ```
*
* @event Phaser.Sound.Events#DECODED_ALL
* @type {string}
* @since 3.18.0
*/
module.exports = 'decodedall';