Shine-MP3-Encoder-on-AS3-Alchemy icon indicating copy to clipboard operation
Shine-MP3-Encoder-on-AS3-Alchemy copied to clipboard

how to dispose resources

Open rdalv opened this issue 13 years ago • 0 comments

How can I properly dispose the resources after the encoder is no longer required? This is what i've tried:

  1. I've tried setting the byte arrays and the ShineMP3Encoder object to null but that didn't do it.
  2. 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.
  3. 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!

rdalv avatar Aug 18 '11 18:08 rdalv