- Home /
Set pitch of clip played through OnAudioFilterRead
Hi there. I'm trying to play several audioClips through one AudioSource via OnAudioFilterRead - So far so good. But that also means I loose the ability to set the pitch for each clip.
How can I set the pitch of a clip that gets played through OnAudioFilterRead??
Answer by MakeCodeNow · Jul 14, 2014 at 01:11 AM
Changing the pitch means changing the sample rate. If you want to increase the pitch, that's easy, just start skipping over samples. If you want to decrease the pitch, then you'll need to create new samples, usually by repeating or interpolating between existing ones.
Your answer
Follow this Question
Related Questions
Accessing low passed filtered audio data 0 Answers
Truncate audio runtime 0 Answers
script changes audio pitch 0 Answers
How to get C# Array to Load into Audio Source 0 Answers
GetSpectrumData - what does it fill the samples argument with exactly? 0 Answers