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

# sdPstmSetSpeed

Sets the play speed of a PCM Stream port

### FORMAT

`

  SDE_ERR sdPstmSetSpeed( handle, speed, fade_time )
  SDPSTM handle
  Sint8 speed
  Sint16 fade_time

`

### PARAMETER

  `handle` | Object handle
  `speed` | Target play speed

### 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 speed of a PCM Stream port.

  The range of values for the target play speed is -18FFH (slowest) to 0000H (mid) to 18FFH (fastest), with half speed = -0C00H and double speed = 0C00H.

### NOTE

  Faster/slower play results in higher/lower pitch, respectively.

sdPstmSetSpeed

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999