A2020 Posted April 8, 2017 Share Posted April 8, 2017 So, as for now I'm playing an audio on a function with something like this: var audio = new Audio('assets/ogg/brain.ogg'); audio.play(); How can I set the volume for that audio? Thanks a lot Link to comment Share on other sites More sharing options...
jjwallace Posted April 8, 2017 Share Posted April 8, 2017 audio.volume = 0; EXAMPLE: https://phaser.io/examples/v2/audio/play-music A2020 1 Link to comment Share on other sites More sharing options...
A2020 Posted April 8, 2017 Author Share Posted April 8, 2017 39 minutes ago, jjwallace said: audio.volume = 0; EXAMPLE: https://phaser.io/examples/v2/audio/play-music Thanks a lot. Link to comment Share on other sites More sharing options...
Recommended Posts