I am working on my own game using MonoGame v. 3.6.
Currently, I am implementing the sound of my game, where I am using SoundEffectInstances to play some background music.
I have read over some topics and have seen a response by @nkast.
There, he has created a loop using the LoadContent() and Unload()-methods of the content manager and created some SoundEffectInstances. The observation was that the memory consumption was increasing steadily.
In my current work, I share these observations.
My question is:
What can I do to minimize the memory consumption created by the SoundEffectInstances?
I have thought of a pool of SoundEffectInstances and reusing the already stopped ones… but are there other ideas or way to do so?
Or have I completely missed something?
Thank you in advance!