nn::snd::CTR::Voice::SetPitch Member Function

Syntax

void SetPitch(
     f32 pitch
);

Arguments

Name Description
in pitch Ratio of the playback speed to the sampling rate.

Return Values

None.

Description

Sets the pitch of a voice.

This sets the ratio of the playback speed to the sound source sampling rate set by the nn::snd::CTR::Voice::SetSampleRate function (a ratio of 1.0 indicates that the playback speed and sampling rate are the same). For example, if you specify a sampling rate of 32kHz and a pitch of 0.5, the audio is played at 16kHz.

The default value is 1.0.

Revision History

2010/01/29
Initial version.

CONFIDENTIAL