This function will stop all sounds that are currently playing.
audio_stop_all();
N/A
if !global.SFX
{
audio_stop_all();
}
The above code checks the global variable "SFX" and if it returns false, it will stop all sounds that are currently playing.