audio_resume_music

Resumes the current music track after it has been paused (OBSOLETE).

Syntax:

audio_resume_music();


Returns: N/A


Description

WARNING! This function has been obsoleted and you should use audio_resume_sound instead.

With this function you can resume a music track that is currently paused (after using the function audio_pause_music).


Example:

if keyboard_check_pressed(ord("P"))
   {
   global.Pause = !global.Pause;
   if global.Pause
      {
      audio_pause_music();
      }
   else
      {
      audio_resume_music();
      }
   }

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 music or it resumes the music from its paused state depending on the returned value.


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