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


Bool
Sound function

slBGMFade

Change BGM performance volume

Format

Bool slBGMFade(Volume , Rate)
Uint8 Volume ;
Uint8 Rate ;

Parameter

Volume Volume value
Rate Rate value

Function

Gradually change the BGM performance volume.

Return value

If there is no room in the command, the function returns FALSE.

Remarks

Parameter "Volume" has a range from 0 to 127, parameter "Rate" Specify a range from 0 to 255.
For "Rate", specify the interval from the current volume to the specified volume.
If 0 is specified for "Rate", the volume specified for "Volume" is set immediately.

Reference: Chapter 14 Sound Library

slBGMFade


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