UNPKG

phaser

Version:

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

23 lines (21 loc) 828 B
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * The Sound Manager Global Volume Event. * * This event is dispatched by the Sound Manager when its `volume` property is changed, either directly * or via the `setVolume` method. This changes the volume of all active sounds. * * Listen to it from a Scene using: `this.sound.on('volume', listener)`. * * @event Phaser.Sound.Events#GLOBAL_VOLUME * @type {string} * @since 3.0.0 * * @param {(Phaser.Sound.WebAudioSoundManager|Phaser.Sound.HTML5AudioSoundManager)} soundManager - A reference to the sound manager that emitted the event. * @param {number} volume - The new global volume of the Sound Manager. */ module.exports = 'volume';