2018-02-12 16:01:20 +00:00
|
|
|
/**
|
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
|
|
|
* @copyright 2018 Photon Storm Ltd.
|
|
|
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
|
|
|
*/
|
|
|
|
|
2018-01-31 13:54:44 +00:00
|
|
|
/**
|
|
|
|
* @namespace Phaser.Sound
|
|
|
|
*/
|
2017-01-11 04:38:15 +00:00
|
|
|
|
2018-02-18 14:29:33 +00:00
|
|
|
/**
|
|
|
|
* Config object containing various sound settings.
|
|
|
|
*
|
|
|
|
* @typedef {object} SoundConfig
|
|
|
|
*
|
|
|
|
* @property {boolean} [mute=false] - Boolean indicating whether the sound should be muted or not.
|
|
|
|
* @property {number} [volume=1] - A value between 0 (silence) and 1 (full volume).
|
|
|
|
* @property {number} [rate=1] - Defines the speed at which the sound should be played.
|
|
|
|
* @property {number} [detune=0] - Represents detuning of sound in [cents](https://en.wikipedia.org/wiki/Cent_%28music%29).
|
|
|
|
* @property {number} [seek=0] - Position of playback for this sound, in seconds.
|
|
|
|
* @property {boolean} [loop=false] - Whether or not the sound or current sound marker should loop.
|
|
|
|
* @property {number} [delay=0] - Time, in seconds, that should elapse before the sound actually starts its playback.
|
|
|
|
*/
|
|
|
|
|
2017-01-11 04:38:15 +00:00
|
|
|
module.exports = {
|
|
|
|
|
2017-11-17 13:18:22 +00:00
|
|
|
SoundManagerCreator: require('./SoundManagerCreator'),
|
|
|
|
|
|
|
|
BaseSound: require('./BaseSound'),
|
2017-11-10 12:05:29 +00:00
|
|
|
BaseSoundManager: require('./BaseSoundManager'),
|
2017-11-14 15:00:24 +00:00
|
|
|
|
2017-11-17 13:18:22 +00:00
|
|
|
WebAudioSound: require('./webaudio/WebAudioSound'),
|
2017-12-22 14:47:37 +00:00
|
|
|
WebAudioSoundManager: require('./webaudio/WebAudioSoundManager'),
|
2017-01-11 04:38:15 +00:00
|
|
|
|
2018-01-08 18:47:59 +00:00
|
|
|
HTML5AudioSound: require('./html5/HTML5AudioSound'),
|
2018-01-20 21:06:36 +00:00
|
|
|
HTML5AudioSoundManager: require('./html5/HTML5AudioSoundManager'),
|
|
|
|
|
|
|
|
NoAudioSound: require('./noaudio/NoAudioSound'),
|
|
|
|
NoAudioSoundManager: require('./noaudio/NoAudioSoundManager')
|
2018-01-08 18:25:26 +00:00
|
|
|
|
2017-01-11 04:38:15 +00:00
|
|
|
};
|