Shine-MP3-Encoder-on-AS3-Alchemy
Shine-MP3-Encoder-on-AS3-Alchemy copied to clipboard
how to dispose resources
How can I properly dispose the resources after the encoder is no longer required? This is what i've tried:
- I've tried setting the byte arrays and the ShineMP3Encoder object to null but that didn't do it.
- Then I copied the ShineMP3Encoder class code into my project and exposed the cshine and cmodule.shine.CLibInit objects and set those to null with no results.
- I've looked into the shine library a little, and in main.c and there is a closeByteArray function that is is passed to config.wave.file and config.wave.output when they are initialized but I am not sure if it gets called.
It seems like no matter what i tried the memory usage in the profiler kept growing. I am not a flex developer and have not used Alchemy before, so I would appreciate a little help on this :) Thanks!