Hi, there seems to be no way to remove audio (loaded from an audiostreamplayer) from memory.
Suppose you have an audiostreamplayer node, then you load multiple files into it (it's stupid to do it this way but it's a test and can be done like this correctly):
streamPlayer.Stream = (AudioStream) ResourceLoader.Load ("...");
streamPlayer.Stream = (AudioStream) ResourceLoader.Load ("...");
streamPlayer.Stream = (AudioStream) ResourceLoader.Load ("...");
In my tests that takes up more and more ram because there is no way to download the audio loaded into an audiostreamplayer:
streamPlayer.Stream = (AudioStream) ResourceLoader.Load ("...");
streamPlayer.Stream.UnloadResource ();
streamPlayer.Stream = (AudioStream) ResourceLoader.Load ("...");
streamPlayer.Stream.UnloadResource ();
streamPlayer.Stream = (AudioStream) ResourceLoader.Load ("...");
streamPlayer.Stream.UnloadResource ();
Ok, that would erase the audio loaded into the node and there would be no more ram consumption than necessary.
I just want to use a single audiostreamplayer node so that I can play multiple audio files at different times but since there is no way to download the resource from the audiostreamplayer node, these problems exist.