///scr_Book_StepEvent_Audio
//Place this script within the obj_Book's (or equivalent) Step Event.
//This script takes no arguments.

//If background audio is on/off...
if (BackgroundAudioOn = "false"  ){ sound_volume(BackgroundAudio,0); }
else{ sound_volume(BackgroundAudio,BackgroundAudioVolume); }

//If narration audio is on/off..
if (NarrationOn = "false" ){ sound_volume(TitleAudio,0); sound_volume(Narration[p],0); }
else{ sound_volume(TitleAudio,NarrationVolume); sound_volume(Narration[p],NarrationVolume); }

//Used to control narration...
if (p == -1) and sound_isplaying(Narration[p+2]){ sound_stop(Narration[p+2]); }
if (p != -1) and sound_isplaying(TitleAudio){ sound_stop(TitleAudio); }
if (p == -1) and !sound_isplaying(TitleAudio) and (HeardIt = false) { sound_play(TitleAudio); HeardIt = true; }
if !sound_isplaying(Narration[p]) and ( HeardIt = false ) { sound_play(Narration[p]); HeardIt = true; }
