2

Hi I am playing a sound effect in a cocos game using this method from SimpleAudioEngine Is there a way to control the playback rate (speed up or slow down) of this audio at runtime.

int playEffect(const char* filePath, bool loop = false,
                                    float pitch = 1.0f, float pan = 0.0f, float gain = 1.0f);
javaDeveloper
  • 1,403
  • 3
  • 28
  • 42
  • 1
    I don't know of a way to do that, so I would recommend making the appropriate additional versions of the audio with speed changes. – nycynik Jul 27 '21 at 18:21

0 Answers0