Answers for "unity change audio clip tempo and keep pitch"

C#
0

unity change audio clip tempo and keep pitch

// define a field
AudioSource audioSource;

// ... in method:
float newSpeed = 1.2f;
audioSource.pitch = newSpeed;
// use with mixer group
audioSource.outputAudioMixerGroup.audioMixer.SetFloat("Pitch", 1f / newSpeed);
Posted by: Guest on October-05-2021

C# Answers by Framework

Browse Popular Code Answers by Language