A2020 Posted April 8, 2017 Report 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 Quote Link to comment Share on other sites More sharing options...
jjwallace Posted April 8, 2017 Report Share Posted April 8, 2017 audio.volume = 0; EXAMPLE: https://phaser.io/examples/v2/audio/play-music A2020 1 Quote Link to comment Share on other sites More sharing options...
A2020 Posted April 8, 2017 Author Report 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.