# Writing a custom dsp for unity

**URL:** <https://qa.fmod.com/t/writing-a-custom-dsp-for-unity/15925>\
**Category:** Unity\
**Created:** [June 29, 2020, 1:07pm UTC](https://qa.fmod.com/t/writing-a-custom-dsp-for-unity/15925 "2020-06-29T13:07:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deltaLuka](https://avatars.discourse-cdn.com/v4/letter/d/b77776/32.png) [@deltaLuka](https://qa.fmod.com/u/deltaLuka)\
**Post date:** [June 29, 2020, 1:07pm UTC](https://qa.fmod.com/t/writing-a-custom-dsp-for-unity/15925/1 "2020-06-29T13:07:34Z")

</div>

Hello! We’ve been using FMOD for a while and descided to include Unity Render Streaming into our app. Since audio streaming through webrtc goes through Unity audio listener I need to catch fmod output so I can forward that data. I understand that for that too work I need to write my custom dsp but this is where my understanding and knowledge stops. I’m completely lost. Do I write custom dsp in c# or do i have to write in c++ (which I’ve never used) and do i have to create a dll? And how would i do that? Current documentation is quite confusing.

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [July 10, 2020, 5:05am UTC](https://qa.fmod.com/t/writing-a-custom-dsp-for-unity/15925/2 "2020-07-10T05:05:05Z")

</div>

It sounds like something you could write in C#, by creating a plugin and attaching it to the master bus.

You can find information on the [DSP API in the docs](https://fmod.com/resources/documentation-api?version=2.1&page=white-papers-dsp-plugin-api.html), as well as some DSP examples in the API download and the fmodplugins.cpp.
