T2008
Member
I'm having trouble pausing and resuming sound. The code is in the step event and is posted below. For some reason, I can stop and and play the music. However, when I pause and resume, it doesn't work. I know the triggering events are working because it works when I stop and play it. Any ideas as to why this doesn't pause the music? Any help would be greatly appreciated!
Code:
if (obj_lab1rm6_trigger_outage.triggered) && (!obj_lab1rm6_trigger_outage.scene_over) {
audio_pause_sound(global.snd_bkg_music); //this won't pause sound
//audio_stop_sound(global.snd_bkg_music); //it works to stop sound when this is coded
}
if (obj_lab1rm6_trigger_outage.scene_over) {
//if (!audio_is_playing(global.snd_bkg_music)) { //it works to play music from beginning when this is in
//audio_play_sound(global.snd_bkg_music,10,true);
// }
audio_resume_sound(global.snd_bkg_music); //this doesn't work
}