XgmResumeMusic

Last Modified: 1/3/2021

Resumes music that was stopped with XgmStopMusic command.

Example

Syntax: XgmResumeMusic
    XgmTrack MyMusicTrack
    XgmStartMusic
    
    On vInt GoSub Vbl
    Enable vInt
    
    playing = True
    
    While 1
        j = JoyPad()
        If j.7 Then
            If playing = True Then
                XgmStopMusic
                playing = False
            Else
                playing = True
                XgmResumeMusic
            End If
        End If
        WaitPadUp 0
        Sleep 1
    Wend
    
Vbl:
    XgmVintProc
    Return

See Also

XgmPlayPcm, XgmSetBusProtection, XgmSetPcm, XgmSetTempo, XgmStartMusic, XgmStopMusic, XgmStopPcm, XgmTrack, XgmVintProc