UNPKG

phaser

Version:

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

29 lines (27 loc) 838 B
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * The Sound Seek Event. * * This event is dispatched by both Web Audio and HTML5 Audio Sound objects when they are seeked to a new position. * * Listen to it from a Sound instance using `Sound.on('seek', listener)`, i.e.: * * ```javascript * var music = this.sound.add('key'); * music.on('seek', listener); * music.play(); * music.setSeek(5000); * ``` * * @event Phaser.Sound.Events#SEEK * @type {string} * @since 3.0.0 * * @param {(Phaser.Sound.WebAudioSound|Phaser.Sound.HTML5AudioSound)} sound - A reference to the Sound that emitted the event. * @param {number} detune - The new detune value of the Sound. */ module.exports = 'seek';