Default bgm volume
Volume change held threshold
Volume step to apply upon volume altering
The current BGM Phaser.Sound object.
Registers a sound effect in the engine.
the sound effect key name.
Changes the game volume.
Delta to apply to the volume
Final game volume
Gets the Phaser.Sound object of a bgm.
the bgm identifier.
the bgm Phaser.Sound object.
Initializes the game sound effects.
Initializes mute and volume alter controls.
Pauses a bgm.
the bgm identifier to be paused. If not passed, it will pause current bgm.
if true, the bgm will fade out before pausing.
the fadeout duration in ms.
Plays the current active battle bgm.
Plays current activated bgm sound.
Whether the bgm should loop or not.
The volume to be applied. [0,1].
On bgm complete callback.
if true, the bgm will fade in on start.
The fade in duration in ms.
Adds a new BGM audio to Phaser sound manager and plays it. You can give an unique name for this BGM by passing 'bgm_identifier' argument.
The bgm key name registered in the json db.
Whether the bgm should loop or not.
The volume to be applied. [0,1].
On bgm complete callback.
if true, the bgm will fade in on start.
The fade in duration in ms.
an unique name for this bgm.
returns the Phaser.Sound object.
Plays a registered sound effect.
the sound effect key name.
on sfx stop callback function.
the amount of time in sec. to initially cut of this sfx.
the volume that it will be plays. [0,1].
Returns the Phaser.Sound instance.
Plays a registered sound effect, pausing the current bgm before and resuming it after
the sound effect key name.
the amount of time in sec. to initially cut of this sfx.
the volume that it will be plays. [0,1].
Resumes the current bgm sound that was paused.
Sets the current bgm object to played by the engine.
The bgm key name.
whether is to already start playing.
Stops a bgm. If 'bgm_identifier', the bgm entry is removed on stop finish.
the bgm identifier to be stopped. If not passed, it will stop current bgm.
if true, the bgm will fade out before stopping.
the fadeout duration in ms.
Generated using TypeDoc
This class is responsible for manipulating background musics (BGM) and sound effect audios (SFX) of the engine.