Return to previous page | Return to menu | Go to next page


Sint8
Sound function

slPCMOn

Start playing with PCM sound source

Format

Sint8 slPCMOn(Pdat , Data , Size)
PCM *Pdat ;
void *Data ;
Uint32 Size ;

Parameter

Pdata PCM type structure data
Data PCM data table address
Size Size of the PCM data table

Function

Play music (sound effects) with PCM sound source.

Return value

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.

Remarks

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


Return to previous page | Return to menu | Go to next page