unity audio sources cutting out when many enemies shoot at once
Unity 2022.3.20f1, 2D shooter. Every enemy plays a short laser sound via AudioSource.PlayOneShot on a shared AudioSource attached to the player. When 20+ enemies fire at once the sound gets thin and some shots are silent. Console doesn't show errors. I know there's a limit on simultaneous voices but I can't find where to raise it, and PlayOneShot from a single source means only one plays at a time anyway, right? Should I pool AudioSource components instead? What's the sane architecture for lots of one-shot SFX?
4 replies