I have a bit off code that manipulates Audio files by first putting all the audio file data in NSData variables. But it crashes sometimes because it uses to much RAM
NSData *data1 = [NSData dataWithContentsOfFile: someFile];
I have checked using Instruments that everything was being released and how the RAM was being used and I figured out that it just crashes sometimes when the audio file are to big. Is there a way to store data in smaller bits or in the flash or any other way which would allow me to work with big files without exceeding the maximum RAM on the iPhone.
One thing Im using the NSData for example is concatenating 2 files like this:
[data1 appendData: data2];
Thanks