Skip to content

SoundEffectSourceComponent.MaxConcurrentInstances Property

Definition

Namespace: Brine2D.Systems.Audio

Maximum number of concurrent tracks across all entities playing the same SoundEffect. Zero means unlimited. Default 0.

public int MaxConcurrentInstances { get; set; }

Property Value

System.Int32

Remarks

The limit used is the value on the entity requesting playback. If two entities reference the same sound with different limits, the effective cap depends on which entity triggers play first in a given frame.