debugSfxTotalCreated property
Total AudioPlayers _sfxPool has ever created. For SEQUENTIAL
playSfx calls (each one's player released before the next starts —
the realistic staggered-combo-SFX case sfxPoolCapacity is about)
this stays at 1 no matter how many calls run, proving reuse actually
happens instead of "one new player per call" (the pre-ENH-79
behavior). For genuinely SIMULTANEOUS calls (all in flight at once,
e.g. via Future.wait with none released yet) this can still exceed
sfxPoolCapacity — that many native channels really are needed at
that exact instant regardless of pooling; debugSfxPoolFreeCount is
what stays bounded afterward (the excess gets disposed, not
retained).
Implementation
@visibleForTesting
int get debugSfxTotalCreated => _sfxPool.totalCreated;