Sound Function - Sound Module Control Function

sdShotSetVol

Sets the volume of a One-Shot port

FORMAT

SDE_ERR sdShotSetVol( handle, vol, fade_time )
SDSHOT handle
Sint8 vol
Sint16 fade_time

PARAMETER

 handle  Object handle 
 vol  Target volume 
 fade_time  Time to reach target volume 

RETURN

 SDE_ERR_NO_INIT  The Sound Library has not been initialized 
 SDE_ERR_HANDLE_NULL  The handle is NULL 
 SDE_ERR_HOST_CMD_BUF_NO_ENOUGH  No more host commands can be accepted 

DESCRIPTION

Sets the play volume of a One-Shot port.

The range of vol, which specifies volume, is -007FH (min) to 0000H (mid) to 007FH (max).

Units of fade_time, which specifies the time needed to reach volume, are milliseconds, from 0000H (fastest) to 7FFFH (slowest).


sdShotSetVol
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999