When you call the Play function from the Audio object for the music, add a tag.
After that just call stop using the same tag.
As for the sound effects, make a global variable(You can call it Sound). Set the variable to 0 when the sound effects should be off and set it to 1 when it should be on. Whenever you need to play a sound effect, test if this variable equals to 1.