Hi friends,
Quick question that I don’t find in the documentation.
I created a StaticSoundBuffer using CreateSoundBufferAsync to reuse it in different sounds.
What’s the proper way to remove it?
Is it enough removing its references?
Hi friends,
Quick question that I don’t find in the documentation.
I created a StaticSoundBuffer using CreateSoundBufferAsync to reuse it in different sounds.
What’s the proper way to remove it?
Is it enough removing its references?
cc @docEdub
Ya, StaticSoundBuffer is only referenced internally from StaticSound objects, so once the last StaticSound object referencing a buffer is disposed and no longer referenced, the buffer will be GC’d if your code is not referencing it anymore.