Answered
0
0

Hello! I create FMOD.Sound by using AudioClip in Unity. How I can change speed of this sound in runtime. I tried to use setMusicSpeed but it’s not effective.

  • You must to post comments
Best Answer
0
0

Hi Trung,

You can use setPitch() on the FMOD::Channel that the FMOD::Sound is using. You should have this Channel already when creating the FMOD::Sound.

https://www.fmod.com/resources/documentation-api?page=content/generated/FMOD_Channel_SetPitch.html#/

Thanks,
Richard

  • trung

    Thanks Richard,
    I tried this solution but this make sound got deformation. Has any solution didn’t make sound deformation?

  • Richard Simms

    Hi Trung,

    If you are looking for a method of increasing the playback rate without affecting the pitch then we unfortunately do not support this.

    You can use the Pitch Shifter DSP to compensate the changes in pitch however this method is very expensive on resources and may not sound the best quality.

    Thanks,
    Richard

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.