# NNS_SndWaveOutSetSpeed

## Syntax

      #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 for the waveform playback handle of a waveform that is 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

2004/10/19 Added a note about calling this function.
2004/07/01 Initial version.

CONFIDENTIAL