Resumes the indicated sound after it has been paused.



Argument Description
index The index of the sound to resume.

Returns: N/A


With this function you can resume any sound that is currently paused (after using the function audio_pause_sound). The sound can either be a single instance of a sound (the index for individual sounds being played can be stored in a variable when using the audio_play_sound or audio_play_sound_at functions) or a sound asset, in which case all instances of the given sound will be re-started.


if keyboard_check_pressed(ord("P"))
   global.Pause = !global.Pause;
   if global.Pause

The above code checks for a press of the keyboard key "P" and if it detects one it sets the global variable "Pause" to true or false and then either pauses the sound indexed in the variable "snd_Waterfall" or it resumes the sound from its paused state.

Back: Audio
Next: audio_resume_all
© Copyright YoYo Games Ltd. 2018 All Rights Reserved