# Stream audio to Fmod

**URL:** <https://qa.fmod.com/t/stream-audio-to-fmod/21389>\
**Category:** FMOD Studio\
**Tags:** unity\
**Created:** [March 20, 2024, 2:19pm UTC](https://qa.fmod.com/t/stream-audio-to-fmod/21389 "2024-03-20T14:19:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![holiwerbb](https://avatars.discourse-cdn.com/v4/letter/h/dec6dc/32.png) [@holiwerbb](https://qa.fmod.com/u/holiwerbb)\
**Post date:** [March 20, 2024, 2:19pm UTC](https://qa.fmod.com/t/stream-audio-to-fmod/21389/1 "2024-03-20T14:19:04Z")

</div>

Hey, i have MPTK (MIDI Player Toolkit) Asset in Unity store to play MIDI via a soundfont. i want to stream that soundfont to Fmod audio to be able to apply effects like delay. someone can help me? maybe the function FMOD\_CREATESTREAM ?¿

---

<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:** [March 26, 2024, 1:03am UTC](https://qa.fmod.com/t/stream-audio-to-fmod/21389/2 "2024-03-26T01:03:43Z")

</div>

Assuming that by “i want to stream that soundfont to Fmod audio”, you mean that the you want to stream the audio produced by playing the MIDI inputs using the soundfont to FMOD, the simplest way to do it is to manually provide your audio data to a created FMOD sound. Our [Unity video playback example script](https://www.fmod.com/docs/2.02/unity/examples-video-playback.html) provides an example of how to pass audio data from Unity’s video player to an FMOD sound, while automatically adjusting for the latency between the two individual systems - you can use it as a reference on how to pass audio data to FMOD on the fly.

After creating your sound, you can add DSP effects by creating the DSP by type (i.e. rever, delay, etc.) with [`System::createDSPByType`](https://www.fmod.com/docs/2.02/api/core-api-system.html#system_createdspbytype), and adding it to the Channel/ChannelGroup with [`ChannelControl::addDSP`](https://www.fmod.com/docs/2.02/api/core-api-channelcontrol.html#channelcontrol_adddsp). You can tweak its parameters using the relevant [DSP](https://www.fmod.com/docs/2.02/api/core-api-dsp.html) “parameter” methods.
