# Can the frequency of channel be adjusted when FMOD is used for recording?

**URL:** <https://qa.fmod.com/t/can-the-frequency-of-channel-be-adjusted-when-fmod-is-used-for-recording/14231>\
**Category:** FMOD Engine\
**Created:** [December 4, 2018, 6:38am UTC](https://qa.fmod.com/t/can-the-frequency-of-channel-be-adjusted-when-fmod-is-used-for-recording/14231 "2018-12-04T06:38:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeros2619](https://avatars.discourse-cdn.com/v4/letter/z/7993a0/32.png) [@zeros2619](https://qa.fmod.com/u/zeros2619)\
**Post date:** [December 4, 2018, 6:38am UTC](https://qa.fmod.com/t/can-the-frequency-of-channel-be-adjusted-when-fmod-is-used-for-recording/14231/1 "2018-12-04T06:38:19Z")

</div>

Hello everyone, I am trying to use FMOD recording and adding sound effects in real time during recording.I found that the effect of adjusting the channel frequency in the sound effect did not work.I want to know if FMOD recording supports this operation?

I was using the official record example fmodstudioapi11007android \ API \ lowlevel \ examples \ record.cpp,The following is my code snippet.

```
        /*
        Delay playback until our desired latency is reached.
    */
    if (!channel && samplesRecorded >= adjustedLatency)
    {
        result = system->playSound(sound, 0, false, &channel);
        ERRCHECK(result);
        //&#32;adjusting&#32;the&#32;channel&#32;frequency
        float speed;
        channel->getFrequency(&speed);
        speed = speed * 0.8;
        channel->setFrequency(speed);
    }
```

---

<div class="post-metadata">

**Author:** ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)\
**Post date:** [December 4, 2018, 11:25pm UTC](https://qa.fmod.com/t/can-the-frequency-of-channel-be-adjusted-when-fmod-is-used-for-recording/14231/2 "2018-12-04T23:25:21Z")

</div>

if you change the frequency of a sound that is playing a record buffer, then you will get the sound stuttering/skipping because the play cursor and the record cursor will catch up and pass each other. the record cursor should always be a fixed distance ahead of the play cursor.

So no, you can’t change it as the recording input is not changing frequency along side it.

A better approach might be to try and add a pitch shift DSP with Channel::addDSP which does not alter the play back cursor speed.
