Home
News
Learn
Download
Examples
Community
Login
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
Member of:
Phaser.Sound.HTML5AudioSound
setVolume(value)
Description:
Sets the volume of this Sound.
Parameters:
name
type
description
value
number
The volume of the sound.
Returns:
Description:
This Sound instance.
Type:
Phaser.Sound.HTML5AudioSound
Fires:
Phaser.Sound.Events.VOLUME
Since:
3.4.0
Source:
src/sound/html5/HTML5AudioSound.js
(Line
660
)
Possible examples