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


Bool
Sound function

slBGMOn

Starting BGM performance

Format

Bool slBGMOn(Song , Prio , Volume , Rate)
Uint16 Song ;
Uint8 Prio ;
Uint8 Volume ;
Uint8 Rate ;

Parameter

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

Function

Start playing BGM.

Return value

If the command buffer is full, the function returns FALSE.

Remarks

BGM always uses the pronunciation management number 0.
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 parameter "Volume" and a range from 0 to 255 for parameter "Rate".
For "Rate", specify the interval from volume 0 to the specified volume.
If 0 is specified for "Rate", the volume specified for "Volume" is set immediately.

Reference: Chapter 14 Sound Library

slBGMOn


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