Activate and mute sound?

Hi,

I am searhcing for a way to activate and mute sound and music during a game. At the moment my solution is only to set a Boolean an true or false after i pressed a button for on or off. And when i start the game it checks this variable. If it is true the music starts, if not no music plays. The problem is that i need to load a new level or reload the current level to activate the changes. How can i solve this that i can activate and mute sound by just press a button in game, without loading? Thanks for any helpfull answers!

I have the same doubt