# How to process PCM data as quickly as possible for changing voice file?

**URL:** <https://qa.fmod.com/t/how-to-process-pcm-data-as-quickly-as-possible-for-changing-voice-file/20373>\
**Category:** FMOD Engine\
**Tags:** csharp, cpp\
**Created:** [July 3, 2023, 9:11am UTC](https://qa.fmod.com/t/how-to-process-pcm-data-as-quickly-as-possible-for-changing-voice-file/20373 "2023-07-03T09:11:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FineJared8](https://avatars.discourse-cdn.com/v4/letter/f/e19adc/32.png) [@FineJared8](https://qa.fmod.com/u/FineJared8)\
**Post date:** [July 3, 2023, 9:11am UTC](https://qa.fmod.com/t/how-to-process-pcm-data-as-quickly-as-possible-for-changing-voice-file/20373/1 "2023-07-03T09:11:53Z")

</div>

I am implementing a file voice modulation feature. Here is my workflow:

First, I decode an audio file to obtain PCM data. Then I process the PCM data through a series of VST plugins to get modified PCM. Finally, I input the modified PCM into the Fmod engine for voice modulation.

However, I am facing an issue where the processing speed of Fmod matches the normal playback speed. Is there a way to make Fmod process the PCM data directly and quickly, bypassing the normal playback speed?

From a programming perspective, it seems simple to skip the code related to the sound frequency loop. Does the Fmod API provide any settings or parameters for this?

Thanks

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [July 4, 2023, 12:27am UTC](https://qa.fmod.com/t/how-to-process-pcm-data-as-quickly-as-possible-for-changing-voice-file/20373/2 "2023-07-04T00:27:55Z")

</div>

Hi!

I believe what you’re looking for is the initialization flag [`FMOD_INIT_MIX_FROM_UPDATE`](https://www.fmod.com/docs/2.02/api/core-api-system.html#fmod_init_mix_from_update), in combination with the output type [`FMOD_OUTPUTTYPE_WAVWRITER_NRT`](https://www.fmod.com/docs/2.02/api/core-api-system.html#fmod_outputtype_wavwriter_nrt). The output `FMOD_OUTPUTTYPE_WAVWRITER_NRT` is a non-realtime output that writes to a `.wav` file, and `FMOD_INIT_MIX_FROM_UPDATE` causes the FMOD system to mix from calls to `System::update` instead of in realtime, so you can call `System::update` as quickly as possible to process audio as quickly as possible.

---

<div class="post-metadata">

**Author:** ![FineJared8](https://avatars.discourse-cdn.com/v4/letter/f/e19adc/32.png) [@FineJared8](https://qa.fmod.com/u/FineJared8)\
**Post date:** [July 4, 2023, 8:35am UTC](https://qa.fmod.com/t/how-to-process-pcm-data-as-quickly-as-possible-for-changing-voice-file/20373/3 "2023-07-04T08:35:13Z")

</div>

Thank you for your reply.
