Hi, Im experiencing an issue with memory usage loading an iOS music library song file into app directory. Im using the audio data to build a waveform, playback, and trigger some effects.
Here's my method --
Export a song from iOS music library to the app's local directory.
Use unity's WWW class to copy the file from the directory.
Load the WWW class result to an actual audioclip -- this is where the memory usage problem occurs -- it goes from 20-25mb (at startup) to over 100-250mb when it finishes loading and creating the waveform and stays at this level.
Typical song file size is 5-15mb
Have any of you experienced a similar problem or have any advice as to how I could go about finding a solution/hack to fix this issue? Thanks for any help :)
↧