RandyGaul / cute_framework

The *cutest* framework out there for creating 2D games in C++!
https://randygaul.github.io/cute_framework/#/
Other
534 stars 31 forks source link

Audio Duplicate Culling -- Not low-latency enough #172

Open RandyGaul opened 2 months ago

RandyGaul commented 2 months ago

The current implementation of audio culling seems to have far too much latency than what was intended. As of now short sound FX can entirely finish playing before the culling allows another instance to spawn. The intent is to only cull sounds that are played at the exact same moment, to prevent unintended amplitude multipliers. Instead, the culling should work at a very low latency, preferably at the resolution of a single sample.

For now a good workaround is to simply leave the culling feature off by default.