# Destroy programmer sound callback not called after calling EventInstance stop with FMOD\_STUDIO\_STOP\_IMMEDIATE on 1.10.11

**URL:** <https://qa.fmod.com/t/destroy-programmer-sound-callback-not-called-after-calling-eventinstance-stop-with-fmod-studio-stop-immediate-on-1-10-11/14757>\
**Category:** FMOD Engine\
**Created:** [June 10, 2019, 3:33pm UTC](https://qa.fmod.com/t/destroy-programmer-sound-callback-not-called-after-calling-eventinstance-stop-with-fmod-studio-stop-immediate-on-1-10-11/14757 "2019-06-10T15:33:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aguerin](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@aguerin](https://qa.fmod.com/u/aguerin)\
**Post date:** [June 10, 2019, 3:33pm UTC](https://qa.fmod.com/t/destroy-programmer-sound-callback-not-called-after-calling-eventinstance-stop-with-fmod-studio-stop-immediate-on-1-10-11/14757/1 "2019-06-10T15:33:14Z")

</div>

When I stop an event instance of a programmer sound with the flag FMOD\_STUDIO\_STOP\_IMMEDIATE, FMOD\_STUDIO\_EVENT\_CALLBACK\_DESTROY\_PROGRAMMER\_SOUND is not called on 1.10.11.  
If I change the flag to FMOD\_STUDIO\_STOP\_ALLOWFADEOUT, FMOD\_STUDIO\_EVENT\_CALLBACK\_DESTROY\_PROGRAMMER\_SOUND is then properly called.  
NB: An event instance of the same event description (second sentence with a different audio table key) is started right after the first event instance (first sentence) has been stopped.

We upgraded to 1.10.11 from 1.10.09 to benefit from this fix:  
“Studio API - Fixed fire and forget event instances not releasing when another instance of the same event is active.”

It looks like the bug has been introduced in 1.10.11 because on 1.10.09, the FMOD\_STUDIO\_EVENT\_CALLBACK\_DESTROY\_PROGRAMMER\_SOUND was properly called when stopping the event instance with FMOD\_STUDIO\_STOP\_IMMEDIATE.  
This is just a guess, I cannot be sure of that as we skipped the version 1.10.10.

To sum up:

1.10.11  
FMOD\_STUDIO\_STOP\_IMMEDIATE -\> FMOD\_STUDIO\_EVENT\_CALLBACK\_DESTROY\_PROGRAMMER\_SOUND not called (bug)  
FMOD\_STUDIO\_STOP\_ALLOWFADEOUT -\> FMOD\_STUDIO\_EVENT\_CALLBACK\_DESTROY\_PROGRAMMER\_SOUND called

1.10.09  
FMOD\_STUDIO\_STOP\_IMMEDIATE -\> FMOD\_STUDIO\_EVENT\_CALLBACK\_DESTROY\_PROGRAMMER\_SOUND called

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [June 16, 2019, 11:47pm UTC](https://qa.fmod.com/t/destroy-programmer-sound-callback-not-called-after-calling-eventinstance-stop-with-fmod-studio-stop-immediate-on-1-10-11/14757/2 "2019-06-16T23:47:59Z")

</div>

I have tried testing this in 1.10.11 and the callback seems to trigger as expected.  
Are you able to reproduce this in our examples? (Eg. the programmer\_sound example)
