Sound Function - Sound Module Control Function

sdMidiSetPan

Sets the panpot (sound localization) of a MIDI port

FORMAT

SDE_ERR sdMidiSetPan( handle, pan, fade_time )
SDMIDI handle
Sint8 pan
Sint16 fade_time

PARAMETER

 handle  Object port handle 
 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 of a MIDI port.

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

Units of fade_time, which mark the time to reach play speed, are in milliseconds from 0000H (fastest) to 7FFFH (slowest).


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