# Split-screen Multiplayer, 1 Listener per Player

**URL:** <https://qa.fmod.com/t/split-screen-multiplayer-1-listener-per-player/14579>\
**Category:** Unity\
**Created:** [April 17, 2019, 2:28pm UTC](https://qa.fmod.com/t/split-screen-multiplayer-1-listener-per-player/14579 "2019-04-17T14:28:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![OkotT3na1](https://avatars.discourse-cdn.com/v4/letter/o/b5ac83/32.png) [@OkotT3na1](https://qa.fmod.com/u/OkotT3na1)\
**Post date:** [April 17, 2019, 2:28pm UTC](https://qa.fmod.com/t/split-screen-multiplayer-1-listener-per-player/14579/1 "2019-04-17T14:28:29Z")

</div>

I’m trying to get multiple listeners to behave correctly in a 3D split-screen multiplayer game.  
Each of the cameras in the scene has its own listener component. However, only the sound that the last added listener is hearing is being played at runtime. The other listeners are simply ignored. What should I do?

All existing threads on this topic are outdated, so I’m afraid I had to make a new one for Fmod 2.0.

---

<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:** [April 23, 2019, 4:23am UTC](https://qa.fmod.com/t/split-screen-multiplayer-1-listener-per-player/14579/2 "2019-04-23T04:23:14Z")

</div>

Are you seeing any errors or warnings in the console log?  
Are you assigning a different listener index on the StudioListener component for each of the listeners?

---

<div class="post-metadata">

**Author:** ![OkotT3na1](https://avatars.discourse-cdn.com/v4/letter/o/b5ac83/32.png) [@OkotT3na1](https://qa.fmod.com/u/OkotT3na1)\
**Post date:** [April 23, 2019, 7:45am UTC](https://qa.fmod.com/t/split-screen-multiplayer-1-listener-per-player/14579/3 "2019-04-23T07:45:13Z")

</div>

> [@cameron-fmod](#):
>
> Are you assigning a different listener index on the StudioListener component for each of the listeners?

Yes, I am. But as soon as I assign any number greater than zero, I’m getting this error:

```
[FMOD] assert : assertion: 'listener >= 0 && listener < numlisteners' failed

UnityEngine.Debug:LogError(Object)
FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, StringWrapper, Int32, StringWrapper, StringWrapper) (at Assets/Plugins/FMOD/src/Runtime/RuntimeManager.cs:28)
FMOD.Studio.System:FMOD_Studio_System_SetListenerAttributes()
FMOD.Studio.System:setListenerAttributes(Int32, ATTRIBUTES_3D) (at Assets/Plugins/FMOD/src/Runtime/wrapper/fmod_studio.cs:553)
FMODUnity.RuntimeManager:SetListenerLocation(Int32, GameObject, Rigidbody2D) (at Assets/Plugins/FMOD/src/Runtime/RuntimeManager.cs:934)
FMODUnity.StudioListener:SetListenerLocation() (at Assets/Plugins/FMOD/src/Runtime/StudioListener.cs:40)
FMODUnity.StudioListener:Update() (at Assets/Plugins/FMOD/src/Runtime/StudioListener.cs:29)

```

Another thing I noticed is that the user can effectively assign nine different numbers to the index of the Studio Listener component, if you include the zero. However, as far as I am aware, the maximum number of listeners is eight. Should the zero never be used then if there’s more than one listener in a scene? Or should the eight be ignored because it’s one too many?

---

<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:** [April 24, 2019, 2:35am UTC](https://qa.fmod.com/t/split-screen-multiplayer-1-listener-per-player/14579/4 "2019-04-24T02:35:02Z")

</div>

> [@OkotT3na1](#):
>
> But as soon as I assign any number greater than zero, I’m getting this error

> [@OkotT3na1](#):
>
> Another thing I noticed is that the user can effectively assign nine different numbers to the index of the Studio Listener component

Both of these issues have already been resolved for the next release, 1.10.13 & 2.00.01.  
The first listener should always be index zero, the ninth (index 8) listener will fail to be set, as it should only go up to 8 (0-7).

We will likely change this in a 2.0 patch so that the integration assigns a listener index rather than the user having to specify it.

---

<div class="post-metadata">

**Author:** ![OkotT3na1](https://avatars.discourse-cdn.com/v4/letter/o/b5ac83/32.png) [@OkotT3na1](https://qa.fmod.com/u/OkotT3na1)\
**Post date:** [April 26, 2019, 10:56am UTC](https://qa.fmod.com/t/split-screen-multiplayer-1-listener-per-player/14579/5 "2019-04-26T10:56:31Z")

</div>

I’m eagerly awaiting the update then. I doubt you could give me an ETA, but I’ll be checking your github every day, and then eventually (hopefully) I can mark this thread as solved.

Edit: Done. Everything is now working as expected.
