SecondBASIC Documentation v3

Home / Command Reference / XgmSetPcm


Description: Loads the PCM data into memory to be used by the XgmPlayPcm command.


XgmSetPcm <LineLabel>, <Channel>, <Priority>

Part Description
<LineLabel> Required. This is the line label where the PCM data is located. This is either added in through the Files section of the Project Browser or through including it through ASM code. See the XGM Driver section for more information.
<Channel> Required. This is the channel to load the PCM data into. Valid channel range is 0 to 3.
<Priority> Required. Sets the priority of the sample. Valid priority range is 0 to 15, where 0 is the lowest and 15 is the highest.


    XgmSetPcm MySample, 1, 1