In my case, I create ChannelGroup and add channels into it. I change the group playback rete using the following code:
FMOD::DSP* dsp; float speed = 1.5f; system->createDSPByType(FMOD_DSP_TYPE_PITCHSHIFT, &dsp); dsp->setParameterFloat(FMOD_DSP_PITCHSHIFT_PITCH, 1/speed); group->addDSP(0, dsp); group->setPitch(speed);
the result is the audio group plays 1.5x faster as expected, but sound like highly compressed mp3 with low byterate. My original audio file is 320kbps mp3.
- You must login to post comments
Please login first to submit.