Splitting Audio

intermediate concepts

Split Screen Pro · Core Concepts

Splitting Audio

Split Screen Pro provides built-in support for splitting audio between two players. Since Unity only allows one AudioListener in the scene, the system offers two approaches.

Option 1 — External audio system (FMOD)

Use a third-party audio system like FMOD which supports multiple listeners. Replace your AudioListener and AudioSource components with the equivalents provided by the external system.

Option 2 — Built-in Split Audio

Enable the Split Audio option on the SplitScreenManager component. The system ensures sounds are played from the nearest player position.

Playing a sound at any position

Use the static method to play a clip at a specific world position. The system automatically determines the nearest player:

SplitScreenManager.PlayClipAtPoint(clip, position, volume);

Setting up Audio Sources

Add the SplitAudioSource component to your AudioSource GameObjects. The system creates a mirrored child AudioSource and manages both based on player proximity:

  1. Select the GameObject with an AudioSource.
  2. Click Add Component and search for SplitAudioSource.
  3. The original AudioSource is muted; the mirrored source plays from the nearest player.
Object pooling tip: If you use object pooling for frequently spawned objects, add SplitAudioSource to the prefab. The mirrored AudioSource becomes part of the prefab, benefiting from your pool.
Was this page helpful?