Passing an ArrayBuffer to the Sound constructor erases its data (after playback)

Actually, @DarraghBurke raised a great point offline :slight_smile:

If your setup is fully identical, you could simply keep one instance of the sound in cache and clone it when needed with sound.clone => this will share the audioBuffer internally

Also creating a pool of those to prevent extra Garbage Collection would be cool :slight_smile:

2 Likes