# All sounds stop playing, when i start 9 instances of a sound effect

**URL:** <https://qa.fmod.com/t/all-sounds-stop-playing-when-i-start-9-instances-of-a-sound-effect/13581>\
**Category:** FMOD Studio\
**Created:** [December 8, 2017, 2:25pm UTC](https://qa.fmod.com/t/all-sounds-stop-playing-when-i-start-9-instances-of-a-sound-effect/13581 "2017-12-08T14:25:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lakibuk](https://avatars.discourse-cdn.com/v4/letter/l/8dc957/32.png) [@lakibuk](https://qa.fmod.com/u/lakibuk)\
**Post date:** [December 8, 2017, 2:25pm UTC](https://qa.fmod.com/t/all-sounds-stop-playing-when-i-start-9-instances-of-a-sound-effect/13581/1 "2017-12-08T14:25:23Z")

</div>

I am starting 9 sound effects (EventInstances) in one frame.  
This is causing FMOD to stop all sounds currently playing.  
Why does this happen and how to prevent it?

Here’s a video of what’s happening. When the explosions start, the background music is gone.

for (int i = 1; i \< 10; i++) {  
sound-\>playSFX(SFX\_EXPLOSION);  
}

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [December 10, 2017, 10:37pm UTC](https://qa.fmod.com/t/all-sounds-stop-playing-when-i-start-9-instances-of-a-sound-effect/13581/2 "2017-12-10T22:37:30Z")

</div>

Hi Karl,

I’ve tested starting 9 event instances at the same time but it did not prevent any other events from playing.

Could you let me know what the playSFX() function is doing? Could you also check your FMOD Studio project to see if you have any “max instances” on the buses or events in question? Please also take a look for any error messages in the console or debug logger of your game engine.

Thanks,  
Richard

---

<div class="post-metadata">

**Author:** ![lakibuk](https://avatars.discourse-cdn.com/v4/letter/l/8dc957/32.png) [@lakibuk](https://qa.fmod.com/u/lakibuk)\
**Post date:** [December 11, 2017, 5:54pm UTC](https://qa.fmod.com/t/all-sounds-stop-playing-when-i-start-9-instances-of-a-sound-effect/13581/3 "2017-12-11T17:54:51Z")

</div>

Hi Richard!

Thanks for your reply.

I am doing this in playSFX:

this-\>sfxEventDescription[sfxNr]-\>createInstance(&eventInstance);  
eventInstance-\>start();  
eventInstance-\>release();

It could well be that there are some old instances killed off, but i don’t know why.  
I’ve got this setup for my project. Music and SFX are two separate VCAs.

[[Album] VCA groups ![](https://i.imgur.com/8nQdwPP.jpg?fb "VCA groups") ](https://imgur.com/a/kEp4Y)

I set “instance stealing” to Off. So no playing instances should be deleted?

[[Album] Instance stealing off ![](https://i.imgur.com/VuGhOvq.jpg?fb "Instance stealing off") ](https://imgur.com/a/PXYV8)

I solved the problem with the music stopping by setting the music tracks’ priority to High. SFXs are Medium.

[[Album] FMOD priority ![](https://i.imgur.com/fMridO2.jpg?fb "FMOD priority") ](https://imgur.com/a/kdRT1)

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [December 11, 2017, 10:26pm UTC](https://qa.fmod.com/t/all-sounds-stop-playing-when-i-start-9-instances-of-a-sound-effect/13581/4 "2017-12-11T22:26:33Z")

</div>

> [@](#):
>
> Hi Richard!
> 
> Thanks for your reply.
> 
> I am doing this in playSFX:
> 
> this-\>sfxEventDescription[sfxNr]-\>createInstance(&eventInstance);  
> eventInstance-\>start();  
> eventInstance-\>release();
> 
> It could well be that there are some old instances killed off, but i don’t know why.  
> I’ve got this setup for my project. Music and SFX are two separate VCAs.  
> [https://imgur.com/a/kEp4Y](https://imgur.com/a/kEp4Y)
> 
> I set “instance stealing” to Off. So no playing instances should be deleted?  
> [https://imgur.com/a/PXYV8](https://imgur.com/a/PXYV8)
> 
> I solved the problem with the music stopping by setting the music tracks’ priority to High. SFXs are Medium.  
> [FMOD priority - Album on Imgur](https://imgur.com/a/kdRT1)

Hi Karl,

Ah yes, it looks like your music track was going virtual for some reason. Setting the priority to be higher than the sfx will ensure this won’t happen again.

The “Off” stealing behaviour means that any existing instances won’t be forcibly removed. It will wait until an event instance has naturally stopped playing before it will allow any new instances to be created/started.

Happy to hear you solved the issue.

Thanks,  
Richard

---

<div class="post-metadata">

**Author:** ![lakibuk](https://avatars.discourse-cdn.com/v4/letter/l/8dc957/32.png) [@lakibuk](https://qa.fmod.com/u/lakibuk)\
**Post date:** [December 14, 2017, 9:38pm UTC](https://qa.fmod.com/t/all-sounds-stop-playing-when-i-start-9-instances-of-a-sound-effect/13581/5 "2017-12-14T21:38:10Z")

</div>

Thanks for the explanation.
