Networked Audio Listeners

Hey guys,

Were working on a Online FPS and were ran into a hiccup. how would you set up the Audio listeners in a networked game? would there be any way of creating multiple instances? because the first listener is fine, but as soon as someone else would join the game wouldn't it start complaining about there being too many audio listeners in the scene?

thz

Remember that each 'client' has its own camera, and you'd probably want to attach the audio listener to that camera. An instance of each camera is only active per 'client' in the scene.

You only want one audio listener on each client, as you only want one camera.

There is no reason to create multiple instances of an audio listener that I can think of unless you need to switch between them for certain reasons.

But in summary each client is correct to only have one listener, which is instanced based on them entering your game scene.

ohhhhhhh....so if i attach a audiolistener to the prefab used to spawn the player. then even if another player would log into the game, spawning there own audiolistener (creating 2 listeners in the game) that would be fine?