how can i create a mute and play music button that mutes all sound from every scene
Hi @tejwinderthind,
It completely depends on how you’ve set up your audio channels. If you want to adjust the volume of sounds playing on every channel (so, all audio globally), you can just set the master volume by calling “audio.setVolume()” without any further channel specification.
https://docs.coronalabs.com/api/library/audio/setVolume.html
Brent
Applicable blog tutorial:
https://coronalabs.com/blog/2013/06/04/tutorial-handling-cross-scene-audio/
Hi @tejwinderthind,
It completely depends on how you’ve set up your audio channels. If you want to adjust the volume of sounds playing on every channel (so, all audio globally), you can just set the master volume by calling “audio.setVolume()” without any further channel specification.
https://docs.coronalabs.com/api/library/audio/setVolume.html
Brent
Applicable blog tutorial:
https://coronalabs.com/blog/2013/06/04/tutorial-handling-cross-scene-audio/