# Hook up to FMOD mixerthread

**URL:** https://qa.fmod.com/t/hook-up-to-fmod-mixerthread/21922
**Category:** Unreal Engine
**Created:** [July 25, 2024, 8:22am UTC](https://qa.fmod.com/t/hook-up-to-fmod-mixerthread/21922 "2024-07-25T08:22:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![apfelbaum](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/apfelbaum/32/4843_2.png) [@apfelbaum](https://qa.fmod.com/u/apfelbaum)
#### Post date: [July 25, 2024, 8:22am UTC](https://qa.fmod.com/t/hook-up-to-fmod-mixerthread/21922/1 "2024-07-25T08:22:15Z")

</div>

Hi,  
I couldn’t find anything yet, maybe I overlooked something. Is it possible to hookup somehow to the FMOD update loop to do audio related things? I thought, as this is already async and in a fixed timestep, it would make more sense to calculate audio related things in this mainloop before all individual audio things are processed by FMOD.

Best regards

---

<div class="post-metadata">

### Author: ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)
#### Post date: [July 29, 2024, 5:48am UTC](https://qa.fmod.com/t/hook-up-to-fmod-mixerthread/21922/2 "2024-07-29T05:48:35Z")

</div>

Hi,

We do have some callbacks that may provide the behavior you are looking for:  
[FMOD Engine | Core API Reference - System](https://fmod.com/docs/2.02/api/core-api-system.html)

- [FMOD\_SYSTEM\_CALLBACK\_PREMIX](https://fmod.com/docs/2.02/api/core-api-system.html#fmod_system_callback_type:~:text=FMOD_SYSTEM_CALLBACK_PREMIX)  
Called from the mixer thread before it starts the next block.
- [FMOD\_SYSTEM\_CALLBACK\_POSTMIX](https://fmod.com/docs/2.02/api/core-api-system.html#fmod_system_callback_type:~:text=FMOD_SYSTEM_CALLBACK_POSTMIX)  
Called from the mixer thread after it finishes a block.

[FMOD Engine | Studio API Reference - System](https://fmod.com/docs/2.02/api/studio-api.html)

- [FMOD\_STUDIO\_SYSTEM\_CALLBACK\_PREUPDATE](https://fmod.com/docs/2.02/api/studio-api-system.html#fmod_studio_system_callback_type:~:text=FMOD_STUDIO_SYSTEM_CALLBACK_PREUPDATE)  
Called at the start of the main Studio update. For async mode this will be on its own thread.
- [FMOD\_STUDIO\_SYSTEM\_CALLBACK\_POSTUPDATE](https://fmod.com/docs/2.02/api/studio-api-system.html#fmod_studio_system_callback_type:~:text=FMOD_STUDIO_SYSTEM_CALLBACK_POSTUPDATE)  
Called at the end of the main Studio update. For async mode this will be on its own thread.

Hope this helps!
