XgmStopPcm

Last Modified: 1/3/2021

Stops the PCM sample on the specified Channel.

Arguments

NameTypeRequiredDescription
Channel Integer Yes The channel to stop the sample on. Valid channels are 0 through 3.

Example

Syntax: XgmStopPcm <Channel>
    On vInt GoSub Vbl
    Enable vInt
    
    While 1
    While 1
        j = JoyPad()
        If j.4 Then
            XgmSetPcm MyPCMSample,1,1
            XgmPlayPcm
        End If
        If j.5 Then
            XgmStopPcm 1
        End If
        WaitPadUp 0
        Sleep 1
    Wend
    
Vbl:
    XgmVintProc
    Return
 
    Asm
MyPCMSample:
    INCBIN "C:\SecondBASICStudio\bin\null.raw"
MyPCMSample_end:
    align 256
    End Asm

See Also

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