# Processing Unity audio output in Csound

**URL:** <https://forum.cabbageaudio.com/t/processing-unity-audio-output-in-csound/3269>\
**Category:** Csound for Games\
**Created:** [5 June 2022 04:27 UTC](https://forum.cabbageaudio.com/t/processing-unity-audio-output-in-csound/3269 "2022-06-05T04:27:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chenliu52](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/c/6f9a4e/32.png) [@chenliu52](https://forum.cabbageaudio.com/u/chenliu52)\
**Post date:** [5 June 2022 04:27 UTC](https://forum.cabbageaudio.com/t/processing-unity-audio-output-in-csound/3269/1 "2022-06-05T04:27:01Z")

</div>

Hi 🙂

I am trying to pass Unity’s audio output to a Csound instrument (basically a filter) via CsoundUnity so that it can process Unity’s sound. Is that possible? Thank you!

Chen Liu.

---

<div class="post-metadata">

**Author:** ![giovannibedetti](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/giovannibedetti/32/4146_2.png) [@giovannibedetti](https://forum.cabbageaudio.com/u/giovannibedetti)\
**Post date:** [6 June 2022 09:13 UTC](https://forum.cabbageaudio.com/t/processing-unity-audio-output-in-csound/3269/2 "2022-06-06T09:13:57Z")

</div>

Hi Chen Liu!  
Yes you can play an AudioClip in the AudioSource that is in the same GameObject of the CsoundUnity component, and toggle “Process Clip Audio”, you can then read the AudioClip samples using the “in” or “inch” opcodes in Csound.  
Have a look at the _Process Clip Audio_ sample!

Instead if you need to pass audio between different GameObjects it requires some scripting.  
The easiest way is to use a table inside Csound, and update its values using [CopyTableOut](http://rorywalsh.github.io/CsoundUnity/html/class_csound_unity.html#aadd9375fe47ffd63b7bb8f1a5e4d190e).  
I’ll prepare a sample showing how to do that in the next days!
