# Only left channel output in Unity

**URL:** <https://forum.cabbageaudio.com/t/only-left-channel-output-in-unity/1194>\
**Category:** Csound for Games\
**Created:** [1 October 2018 03:28 UTC](https://forum.cabbageaudio.com/t/only-left-channel-output-in-unity/1194 "2018-10-01T03:28:25Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![virtualHC](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/virtualhc/32/1508_2.png) [@virtualHC](https://forum.cabbageaudio.com/u/virtualHC)\
**Post date:** [1 October 2018 03:28 UTC](https://forum.cabbageaudio.com/t/only-left-channel-output-in-unity/1194/1 "2018-10-01T03:28:25Z")

</div>

Hello Rory,

I’m testing the latest release of Csound for Unity (I’m planning to use it for a workshop I’m teaching this month) and for some reason I’m not able to get stereo output. I can only hear the left channel. What could be going wrong? Is this a limitation? I’m using the latest version of Unity (2018.2.10)

Thanks!

Hector

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [1 October 2018 13:21 UTC](https://forum.cabbageaudio.com/t/only-left-channel-output-in-unity/1194/2 "2018-10-01T13:21:15Z")

</div>

This issue was reported as fixed in version 2.1:

> **[Release v2.1 · rorywalsh/CsoundUnity](https://github.com/rorywalsh/CsoundUnity/releases/tag/v2.1)**
>
> Contains a fix for an issue with sound only being delivered to a single speaker. Also contains a new editor mode whereby Csound channels can be controlled in the Unity GameObject inspector window o...

It’s all working fine for me here. Try replacing your CsoundUnity.cs file with [this](https://raw.githubusercontent.com/rorywalsh/CsoundUnity/master/CsoundUnityScripts/CsoundUnity.cs) one. Maybe the packaging got messed up somehow…

---

<div class="post-metadata">

**Author:** ![virtualHC](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/virtualhc/32/1508_2.png) [@virtualHC](https://forum.cabbageaudio.com/u/virtualHC)\
**Post date:** [1 October 2018 20:45 UTC](https://forum.cabbageaudio.com/t/only-left-channel-output-in-unity/1194/3 "2018-10-01T20:45:51Z")

</div>

Thanks Rory. I will test it later today when I get back from work. Just from looking at the file I think it will fix my issue since I was actually using the unitypackage from the releases page and the CsoundUnity.cs file from that package looks different and doesn’t contain the fix (which I’m guessing is the use of dummyClip). I’m just realizing that the package is behind from what is in master.

Cheers,

Hector

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [1 October 2018 20:51 UTC](https://forum.cabbageaudio.com/t/only-left-channel-output-in-unity/1194/4 "2018-10-01T20:51:45Z")

</div>

There are a few newer package there you might want to try too, although not much changes apart from that file.

---

<div class="post-metadata">

**Author:** ![virtualHC](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/virtualhc/32/1508_2.png) [@virtualHC](https://forum.cabbageaudio.com/u/virtualHC)\
**Post date:** [1 October 2018 21:06 UTC](https://forum.cabbageaudio.com/t/only-left-channel-output-in-unity/1194/5 "2018-10-01T21:06:52Z")

</div>

Do you mean newer unitpackages in the release page? Because I got the latest one from there (v2.3) and it’s the one that has the outdated CsoundUnity.cs without the channel fix.

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [1 October 2018 22:07 UTC](https://forum.cabbageaudio.com/t/only-left-channel-output-in-unity/1194/6 "2018-10-01T22:07:18Z")

</div>

But the code relating to the output signal should still be the most up to date? Either way, let me know if it works for you now.

---

<div class="post-metadata">

**Author:** ![virtualHC](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/virtualhc/32/1508_2.png) [@virtualHC](https://forum.cabbageaudio.com/u/virtualHC)\
**Post date:** [2 October 2018 02:11 UTC](https://forum.cabbageaudio.com/t/only-left-channel-output-in-unity/1194/7 "2018-10-02T02:11:20Z")

</div>

Thanks Rory. Replacing CsoundUnity.cs with the one from master fixed it.

Cheers!

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [2 October 2018 07:39 UTC](https://forum.cabbageaudio.com/t/only-left-channel-output-in-unity/1194/8 "2018-10-02T07:39:38Z")

</div>

Great. Maybe I should replace the unity packages with simple zip files. Might lead to less confusion? Certainly less maintenance.

---

<div class="post-metadata">

**Author:** ![virtualHC](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/virtualhc/32/1508_2.png) [@virtualHC](https://forum.cabbageaudio.com/u/virtualHC)\
**Post date:** [2 October 2018 14:32 UTC](https://forum.cabbageaudio.com/t/only-left-channel-output-in-unity/1194/9 "2018-10-02T14:32:41Z")

</div>

Yes, a zip with all the pre compiled libraries and Unity assets would work well too. Not as fancy as the unitpackage but if it makes life easier, why not?

Cheers

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [2 October 2018 14:51 UTC](https://forum.cabbageaudio.com/t/only-left-channel-output-in-unity/1194/10 "2018-10-02T14:51:20Z")

</div>

> [@virtualHC](#):
>
> Yes, a zip with all the pre compiled libraries and Unity assets would work well too. Not as fancy as the unitpackage but if it makes life easier, why not?

Well, it would avoid have to open Unity and prepare a package. Then again, maybe I’m just being lazy!
