# NNS_SndWaveOutSetSpeed

## C Specification

      #include <nnsys/snd.h>

      void NNS_SndWaveOutSetSpeed(
      NNSSndWaveOutHandle handle,
      int speed );

## Arguments

`handle` | Waveform playback handle.
`speed` | Playback speed.

## Return Values

None.

## Description

Changes the playback speed of the waveform. If this function is called to the waveform playback handle of the waveform that is being stopped, it does not do anything.

The playback `speed` specifies the speed used for playback. Played back at speed divided by 32768. The faster playback speed makes the playback time shorter, and the pitch of the played sound becomes higher.

This function is called to change the play speed during play. Use an argument in the `NNS_SndWaveOutStart` function to set the play speed that will be used when play commences.

## See Also

NNS_SndWaveOutStart

## Revision History

10/19/2004 Added a note on calling this function.

07/01/2004 Initial version.