Sound Function - Sound Module Control Function

sdPstmSetPan

Sets the panpot of a PCM Stream port

FORMAT

SDE_ERR sdPstmSetPan( handle, ch_num, pan, fade_time )
SDPSTM handle
Sint8 ch_num
Sint8 pan
Sint16 fade_time

PARAMETER

 handle  Object handle 
 ch_num  Object channel 
 pan  Target panpot 
 fade_time  Time to reach target 

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 panpot (sound localization) of a PCM Stream port channel.

The value range of pan, which specifies the target panpot, is -007FH (left) to 0000H (center) to 007FH (right).

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


NOTE

The left channel parameter is invalid for sdPstmSetPan, and is overwritten by this API function.

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