In a game I add a sound plugin.
Where a not much sounds: shoots (3 types), impact (hero damage), enemy shoot sound & base attack alarm (played on bool flag, which sets on takeing damage with flag is 0 & resets on alarm sound complete).
Problem is: after a few minutes with amount of enemys (about 80) sound playes late, up to minute or more. Even if heroes dos't shoot, just when objects count passes 128 pcs.
How to properly use sound plugin and optimize it without making game kid-easy with only few enemys, except of hundred?