# Programmer Instrument Event C# script hangs on var keyResult = FMODUnity.RuntimeManager.StudioSystem.getSoundInfo(key, out dialogueSoundInfo);

**URL:** <https://qa.fmod.com/t/programmer-instrument-event-c-script-hangs-on-var-keyresult-fmodunity-runtimemanager-studiosystem-getsoundinfo-key-out-dialoguesoundinfo/20003>\
**Category:** Unity\
**Tags:** unity, csharp\
**Created:** [March 21, 2023, 9:59pm UTC](https://qa.fmod.com/t/programmer-instrument-event-c-script-hangs-on-var-keyresult-fmodunity-runtimemanager-studiosystem-getsoundinfo-key-out-dialoguesoundinfo/20003 "2023-03-21T21:59:13Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ajportelli](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@ajportelli](https://qa.fmod.com/u/ajportelli)\
**Post date:** [March 22, 2023, 10:27pm UTC](https://qa.fmod.com/t/programmer-instrument-event-c-script-hangs-on-var-keyresult-fmodunity-runtimemanager-studiosystem-getsoundinfo-key-out-dialoguesoundinfo/20003/4 "2023-03-22T22:27:08Z")

</div>

So after looking around the forums more, after a few google searches I managed to find someone else who had the same issue as me using the code that is supplied.

> [@FMOD Programmer Sound Freeze on Unity](https://qa.fmod.com/t/fmod-programmer-sound-freeze-on-unity/19911):
>
> Hello, Playing Programmer Sound is freezing Unity. All the other non-Programmer Sound has been working perfectly for the last 3 years development on this project… Once I play few programmer sound as each dialogue line plays, it freezes the editor without any error message. It happens roughly about 7~13 Programmer Sound plays later - it’s pretty random at this point. I am on: Unity 2020.3.38f1 FMOD 2.01.11 Below is my code to use Programmer Sound wichi is based on [https://www.fmod.com/docs…](https://www.fmod.com/docs/2.01/unity/examples-programmer-sounds.html)

This solution appears to have solved the unity hanging but I do have a CHANNEL\_STOLEN error come up which I will continue to investigate.

---

_[View the full topic](https://qa.fmod.com/t/programmer-instrument-event-c-script-hangs-on-var-keyresult-fmodunity-runtimemanager-studiosystem-getsoundinfo-key-out-dialoguesoundinfo/20003)._
