phaser
Version:
A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers.
23 lines (21 loc) • 854 B
JavaScript
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* The Sound Manager Global Detune Event.
*
* This event is dispatched by the Base Sound Manager, or more typically, an instance of the Web Audio Sound Manager,
* or the HTML5 Audio Manager. It is dispatched when the `detune` property of the Sound Manager is changed, which globally
* adjusts the detuning of all active sounds.
*
* Listen to it from a Scene using: `this.sound.on('rate', listener)`.
*
* @event Phaser.Sound.Events#GLOBAL_DETUNE
* @since 3.0.0
*
* @param {Phaser.Sound.BaseSoundManager} soundManager - A reference to the sound manager that emitted the event.
* @param {number} detune - The updated detune value.
*/
module.exports = 'detune';