ChannelControl::setPitch

FMOD Studio API

Firelight Technologies FMOD Studio API

ChannelControl::setPitch

Sets the pitch value.

C++ Syntax

FMOD_RESULT ChannelControl::setPitch(
  float pitch
);

Parameters

pitch

Pitch value, 0.5 = half pitch, 2.0 = double pitch, etc default = 1.0.

Return Values

If the function succeeds then the return value is FMOD_OK.
If the function fails then the return value will be one of the values defined in the FMOD_RESULT enumeration.

Remarks

This function scales existing frequency values by the pitch.

See Also




Version 1.10.03 Built on Feb 1, 2018