# Trouble running programmer example code on ios

**URL:** <https://qa.fmod.com/t/trouble-running-programmer-example-code-on-ios/12384>\
**Category:** Unity\
**Created:** [March 15, 2016, 6:28pm UTC](https://qa.fmod.com/t/trouble-running-programmer-example-code-on-ios/12384 "2016-03-15T18:28:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimwww](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jimwww](https://qa.fmod.com/u/jimwww)\
**Post date:** [March 15, 2016, 6:28pm UTC](https://qa.fmod.com/t/trouble-running-programmer-example-code-on-ios/12384/1 "2016-03-15T18:28:26Z")

</div>

Hi, I’m trying to get something like [this example](http://www.fmod.org/documentation/#content/generated/engine_new_unity/script_example_programmersounds.html) to run on a Unity ios build.

I want the ability to use the audio tables and load up a sound based on it’s key. It works fine on OSX, but I’m getting an error related to that dialogueKeys Queue, maybe related to the lock.

I’ve added this to the callback, but not sure how to handle the queue thread issue. Any ideas?  
[MonoPInvokeCallback (typeof (FMOD.Studio.EVENT\_CALLBACK))]

Thanks for any help,  
Jim

---

<div class="post-metadata">

**Author:** ![nick1](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@nick1](https://qa.fmod.com/u/nick1)\
**Post date:** [April 5, 2016, 3:32am UTC](https://qa.fmod.com/t/trouble-running-programmer-example-code-on-ios/12384/2 "2016-04-05T03:32:44Z")

</div>

When 1.08.01 is released both the programmer sound and timeline callback examples will be updated to work on iOS. The programmer sound example will also need script changes that are coming in the 1.08.01 update to work on iOS.
