# UE4 Nintendo Switch: "Opening too many Audio Outs, can only open 2" Error

**URL:** <https://qa.fmod.com/t/ue4-nintendo-switch-opening-too-many-audio-outs-can-only-open-2-error/15189>\
**Category:** Unreal Engine\
**Created:** [November 6, 2019, 6:23am UTC](https://qa.fmod.com/t/ue4-nintendo-switch-opening-too-many-audio-outs-can-only-open-2-error/15189 "2019-11-06T06:23:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![wwMaxwellG](https://avatars.discourse-cdn.com/v4/letter/w/3da27b/32.png) [@wwMaxwellG](https://qa.fmod.com/u/wwMaxwellG)\
**Post date:** [November 6, 2019, 6:23am UTC](https://qa.fmod.com/t/ue4-nintendo-switch-opening-too-many-audio-outs-can-only-open-2-error/15189/1 "2019-11-06T06:23:24Z")

</div>

Hey,

On any UE4 Nintendo Switch Build, when calling FMOD::Studio::System’s “initialize”,  
I get this assertion.

```auto
SDK Assertion Failure: 'm_totalUsed!=g_AudioOutCountMax' in AddPair() at pid=149, tid=1130(GameThread)
D:\home\teamcity\work\sdk\Programs\Eris\Sources\Libraries\audio\shim\audio_AudioOutShim.cpp(50)
Opening too many Audio Outs, can only open 2

```

If it is any help, these are the fmod function calls that occurred up until the crashing line. (all within 1 frame)

1. FMOD::System\_Create(foo)
2. FMOD::System::init(1, FMOD\_INIT\_NORMAL, NULL)
3. FMOD::Studio::System::create(foo2)
4. FMOD::Studio::System::initialize(32, FMOD\_INIT\_NORMAL | FMOD\_INIT\_3D\_RIGHTHANDED,FMOD\_INIT\_NORMAL, NULL) \<-Crashes on this line

Any help would be greatly appreciated.

If it also helps, this all works on pc, xbone & ps4.

Regards,  
Maxwell G

---

<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:** [November 8, 2019, 4:19am UTC](https://qa.fmod.com/t/ue4-nintendo-switch-opening-too-many-audio-outs-can-only-open-2-error/15189/2 "2019-11-08T04:19:55Z")

</div>

You can only have two output interfaces at a time on Switch, you are creating two but if you have not disabled the built in UE4 audio then that will already be active.

You can disable the UE4 audio in one of the config files:  
[https://fmod.com/resources/documentation-ue4?version=2.0&page=user-guide.html#disabling-unreal-audio-device](https://fmod.com/resources/documentation-ue4?version=2.0&page=user-guide.html#disabling-unreal-audio-device)

---

<div class="post-metadata">

**Author:** ![wwMaxwellG](https://avatars.discourse-cdn.com/v4/letter/w/3da27b/32.png) [@wwMaxwellG](https://qa.fmod.com/u/wwMaxwellG)\
**Post date:** [November 8, 2019, 4:24am UTC](https://qa.fmod.com/t/ue4-nintendo-switch-opening-too-many-audio-outs-can-only-open-2-error/15189/3 "2019-11-08T04:24:01Z")

</div>

Hey Cameron,

Thanks for the response,

The UE4 Audio is presumably already disabled in the project’s SwitchEngine.ini as all it contains is:

```auto
[Audio]
AudioDeviceModuleName=

```

Is there any extra steps that were needed to make fmod work specifically on Switch, or if this output limit of 2 is switch only, what else could possibly be using an output?

Regards,  
Maxwell G

---

<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:** [November 8, 2019, 4:50am UTC](https://qa.fmod.com/t/ue4-nintendo-switch-opening-too-many-audio-outs-can-only-open-2-error/15189/4 "2019-11-08T04:50:55Z")

</div>

No other steps required for Switch, if you are using the FMOD for UE4 Integration then that will be creating it’s own instance too. If it helps, any FMOD systems initialized using NO\_SOUND mode will not count towards this limit.

---

<div class="post-metadata">

**Author:** ![wwMaxwellG](https://avatars.discourse-cdn.com/v4/letter/w/3da27b/32.png) [@wwMaxwellG](https://qa.fmod.com/u/wwMaxwellG)\
**Post date:** [November 12, 2019, 2:54am UTC](https://qa.fmod.com/t/ue4-nintendo-switch-opening-too-many-audio-outs-can-only-open-2-error/15189/5 "2019-11-12T02:54:11Z")

</div>

Apologies for the late response,

I’ve attempted to pass in the NO\_SOUND parameter in both FMOD::System::init & FMOD::Studio::System::initialize and yet they both still use an audio output and the same error occurs ☹

I’ve been passing in:

```auto
(void*)FMOD_OUTPUTTYPE_NOSOUND

```

into the FMOD::System::init’s & FMOD::Studio::System::initialize’s ‘extradriverdata’ parameter.

In the event that I’m doing something incorrectly, what is the correct method of passing in the NOSOUND parameter into these initialization functions.

Regards,  
Maxwell G

---

<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:** [November 12, 2019, 3:05am UTC](https://qa.fmod.com/t/ue4-nintendo-switch-opening-too-many-audio-outs-can-only-open-2-error/15189/6 "2019-11-12T03:05:11Z")

</div>

You need to pass it in to [`System::setOutput`](https://www.fmod.com/resources/documentation-api?version=2.0&page=core-api-system.html#system_setoutput) before init is called.

---

<div class="post-metadata">

**Author:** ![wwMaxwellG](https://avatars.discourse-cdn.com/v4/letter/w/3da27b/32.png) [@wwMaxwellG](https://qa.fmod.com/u/wwMaxwellG)\
**Post date:** [November 12, 2019, 11:46pm UTC](https://qa.fmod.com/t/ue4-nintendo-switch-opening-too-many-audio-outs-can-only-open-2-error/15189/7 "2019-11-12T23:46:13Z")

</div>

Thanks again for the responses!

the setOutput seems to have fixed the crashing, yet I’m unsure if this genuinely means that no audio will be outputted for Switch (As PC was still outputting audio event with the NoSound output was set)

I’ll set this post as solved, and when I get a chance to see if audio actually plays on Switch, if any issues do occur still, I’ll make a new post.

Regards,  
Maxwell G

---

<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:** [November 12, 2019, 11:53pm UTC](https://qa.fmod.com/t/ue4-nintendo-switch-opening-too-many-audio-outs-can-only-open-2-error/15189/8 "2019-11-12T23:53:35Z")

</div>

Changing the output will only affect that system that you are applying it to and other FMOD systems will not be affected.
