So I started adding sounds to my game and per suggestions from the forum and the documentation of Defolds sound functionality I use a sound controller that plays according sounds on the corresponding message together with a gating functionality.
What happens often is that I have sounds for dragging and dropping objects, now theoretically one can drag an object on an invalid area which makes it disappear and trigger a sound. If the player would want to they could perform this action in rapid succession (not that it would make sense, but anyway). I gate this specific sound but after a certain amount of actions performed I receive an error that the sound buffer is full.
My question in that regard would be on how does the sound buffer get cleared or when are sounds getting removed from it? My sounds are fairly short and should not clog up the sound buffer to my understanding.
ā¬: On that note Iāll sneak in another question related to sound. As soon as the game starts I start the background music. But on some devices/browsers the music only actually starts after interacting with the app for others the music starts immediately. Why is that and is there a way to have this work consistently across devices/browsers? This can be easily replicated by navigating to this example (Music) on Firefox and Chrome.