Return to previous page | Return to menu | Go to next page
Sint8
Sound function
Start playing with PCM sound source
Sint8 slPCMOn(Pdat , Data , Size)
PCM *Pdat ;
void *Data ;
Uint32 Size ;
Pdata PCM type structure data Data PCM data table address Size Size of the PCM data table
Play music (sound effects) with PCM sound source.
The function returns 0 to 7 for normal termination, -1 if the command buffer is insufficient, -2, if the PCM channel is not available, or -3 if the PCM buffer is insufficient.
For details on the PCM type structure, refer to the separate "Structure Reference". PCM playback started with this function stops when the data ends.
Reference: Chapter 14 Sound Library
slPCMOn