##### Sound Function - Sound Module Control Function

# sdShotSetPan

Sets the panpot of a One-Shot port

### FORMAT

`

  SDE_ERR sdShotSetPan( handle, pan, fade_time )
  SDSHOT handle
  Sint8 pan
  Sint16 fade_time

`

### PARAMETER

  `handle` | Object 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 (sound localization) of a One-Shot port.

  The range of `pan`, which specifies the panpot, is -007FH (left) to 0000H (center) to 007FH (right). Units of "fade_time," which specifies the time necessary to reach the panpot, are milliseconds, from 0000H (fastest) to 7FFFH (slowest).

sdShotSetPan

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999