sound_stop_all

Stops every currently-playing sound.

Syntax:

sound_stop_all();


Returns: N/A


Description

With this function you can stop not just one sound, but all sounds that are currently being played (or looped) in the current room, irrespective of the instance that is playing them, or the instance that is running this function.


Example:

if keyboard_check_pressed(ord("M"))
   {
   global.Sound = false;
   sound_stop_all();
   }

The above code will check for a press of the keyboard and if it detects one it will set a global variable and stop all sounds.


Back: Legacy Sound
Next: sound_isplaying
© Copyright YoYo Games Ltd. 2018 All Rights Reserved