# Callbacks not working on Switch?

**URL:** <https://qa.fmod.com/t/callbacks-not-working-on-switch/16288>\
**Category:** Unity\
**Created:** [October 13, 2020, 8:26am UTC](https://qa.fmod.com/t/callbacks-not-working-on-switch/16288 "2020-10-13T08:26:07Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![markybola](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@markybola](https://qa.fmod.com/u/markybola)\
**Post date:** [October 13, 2020, 8:26am UTC](https://qa.fmod.com/t/callbacks-not-working-on-switch/16288/1 "2020-10-13T08:26:07Z")

</div>

Hello,

I’ve been trying to get event callbacks to run on Switch, specifically beat callbacks. Not having much luck. Everything works fine on PC.

I used the timeline callback example as a base, which has the [AOT.MonoPInvokeCallback(typeof(FMOD.Studio.EVENT\_CALLBACK))] attribute and so on.

Can anyone point me in the right direction? Or what else I need to be looking out for?

 ![fmod snip](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/8/8cb05c6fe929cee7fed3df77f5410339c77d00bc.png)  
Kindest,  
Mark

---

<div class="post-metadata">

**Author:** ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)\
**Post date:** [October 13, 2020, 9:57pm UTC](https://qa.fmod.com/t/callbacks-not-working-on-switch/16288/2 "2020-10-13T21:57:08Z")

</div>

Which version of FMOD are you using?  
There were bugs concerning timeline markers fixed in 2.00.11 and 2.00.13.

---

<div class="post-metadata">

**Author:** ![markybola](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@markybola](https://qa.fmod.com/u/markybola)\
**Post date:** [October 13, 2020, 11:17pm UTC](https://qa.fmod.com/t/callbacks-not-working-on-switch/16288/3 "2020-10-13T23:17:42Z")

</div>

2.00.09!  
Thanks, shall try it out and report back!

---

<div class="post-metadata">

**Author:** ![markybola](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@markybola](https://qa.fmod.com/u/markybola)\
**Post date:** [October 14, 2020, 12:06am UTC](https://qa.fmod.com/t/callbacks-not-working-on-switch/16288/4 "2020-10-14T00:06:21Z")

</div>

Updating to 2.00.13 broke il2cpp compilation.

Going to 2.00.11 allows me to build, but the beat callbacks are still broken.

---

<div class="post-metadata">

**Author:** ![ben\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/ben_fmod/32/1452_2.png) [@ben\_fmod](https://qa.fmod.com/u/ben_fmod)\
**Post date:** [October 16, 2020, 12:20am UTC](https://qa.fmod.com/t/callbacks-not-working-on-switch/16288/5 "2020-10-16T00:20:17Z")

</div>

> Updating to 2.00.13 broke il2cpp compilation

Thanks for letting us know about this - it should be fixed in the next release.

---

<div class="post-metadata">

**Author:** ![markybola](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@markybola](https://qa.fmod.com/u/markybola)\
**Post date:** [October 20, 2020, 6:10am UTC](https://qa.fmod.com/t/callbacks-not-working-on-switch/16288/6 "2020-10-20T06:10:14Z")

</div>

When will this version be live?

Still struggling to get beat callbacks to work on Switch, maybe they’ll work in 2.00.13/14?

Kindest,  
Mark

---

<div class="post-metadata">

**Author:** ![ben\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/ben_fmod/32/1452_2.png) [@ben\_fmod](https://qa.fmod.com/u/ben_fmod)\
**Post date:** [October 29, 2020, 4:12am UTC](https://qa.fmod.com/t/callbacks-not-working-on-switch/16288/7 "2020-10-29T04:12:52Z")

</div>

We’re aiming to release the next version in the next couple of weeks. If you want to test beat callbacks in version 2.00.13, you should be able to fix the compilation error by selecting Assets/Plugins/FMOD/src/Runtime/fmodplugins.cpp and enabling Switch in the inspector:  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/e/e1069797ceabb7bdc8edd41c90f4155b2e0ef1f8.png)

---

<div class="post-metadata">

**Author:** ![ben\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/ben_fmod/32/1452_2.png) [@ben\_fmod](https://qa.fmod.com/u/ben_fmod)\
**Post date:** [November 19, 2020, 10:58am UTC](https://qa.fmod.com/t/callbacks-not-working-on-switch/16288/8 "2020-11-19T10:58:36Z")

</div>

Just following up to say that 2.00.14 has now been released. Have you had a chance to try it?

---

<div class="post-metadata">

**Author:** ![markybola](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@markybola](https://qa.fmod.com/u/markybola)\
**Post date:** [July 3, 2021, 9:57am UTC](https://qa.fmod.com/t/callbacks-not-working-on-switch/16288/9 "2021-07-03T09:57:44Z")

</div>

Sorry for the slight delay.

Can confirm that callbacks still do not work.

Is there any other option to check when a new beat comes in? Literally all of my rhythm game is driven by this.

Kindest,  
Mark

---

<div class="post-metadata">

**Author:** ![markybola](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@markybola](https://qa.fmod.com/u/markybola)\
**Post date:** [July 5, 2021, 5:10am UTC](https://qa.fmod.com/t/callbacks-not-working-on-switch/16288/10 "2021-07-05T05:10:45Z")

</div>

I’m now just retrieving timeline position and figuring out what beat I’m on from there.

I didn’t test callbacks on more recent versions, so maybe they are working there.

---

<div class="post-metadata">

**Author:** ![ben\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/ben_fmod/32/1452_2.png) [@ben\_fmod](https://qa.fmod.com/u/ben_fmod)\
**Post date:** [August 6, 2021, 4:46am UTC](https://qa.fmod.com/t/callbacks-not-working-on-switch/16288/11 "2021-08-06T04:46:38Z")

</div>

Thanks for your patience, and sorry to hear that this is still not working for you. Testing here indicates that timeline callbacks are working on Switch in the latest version of FMOD, so perhaps the problem lies elsewhere. Would you be able to send us your source code so we can try to reproduce the issue here?
