audio_stop_all();
Returns: N/A
This function will stop all sounds that are currently
playing.
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.