#include <nw/snd/snd_SoundHandle.h>
void SetPitch(
float pitch
);
| Name | Description | |
|---|---|---|
| in | pitch | The frequency ratio of the pitch change. |
Changes the pitch of the sound.
Changes the pitch of the sound associated with the handle. If the handle is invalid, the function does nothing.
The value specified by this function operates independently of other low-pass filter cut-off parameters, which are all superimposed on top of each other.
pitch specifies the frequency ratio. In other words, there is no effect on the pitch if 1.0 will be specified. When 2.0 is specified, the frequency to be reproduced is doubled, and the pitch is one octave higher. If 0.5 is specified, the pitch will be one octave lower.
The default value is 1.0.
CONFIDENTIAL