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


Uint8
Sound function

slSequenceOn

Starting the specified sound effect

Format

Uint8 slSequenceOn(Song , Prio , Volume , Pan)
Uint16 Song ;
Uint8 Prio ;
Uint8 Volume ;
Sint8 Pan ;

Parameter

Song Sound control number
Prio priority value
Volume Volume value
Pan Pan value

Function

Starts the specified sound effect.

Return value

In case of normal termination, the function returns the pronunciation management number.
If the command buffer and pronunciation management buffer are full, the function returns FALSE.

Remarks

Specify a range of 0 to 31 for the parameter "Prio". The lower the number, the higher the priority.
Specify a range from 0 to 127 for the parameter "Volume".
Specify a range from -127 to 127 for the parameter "Pan".
 (-127 (left) <---> 0 (center) <---> 127 (right))
Since the SCSP pan has 32 steps, the lower 3 bits of “Pan” are ignored.

Reference: Chapter 14 Sound Library

slSequenceOn


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