I'm facing one of two issues.
I am using code from this site:
The problem I am experiencing now is that the code is usually less than 10 seconds and more than 10 Second app causes accident to cause
For some strange reason, even if I release the objects at the end of the loop (more than 1 million iterations for the loop And increasing the size of the recording increases), the object does not seem to be B release starts and remember.
Here's my for loop:
small iValueWav1Sample; Small iValueWav2 sample; Less iValueWavSampleAverage; For example (INT I = 0; i Edit:
@Yusman:
I'm already running the mixing function in the background using the process of performing I am
Ive compiled the objects for both wav1Data and WAV2Data, NSData, which was initially compressed as autorelease object which was initially set as autorelease object. NSDTa * wav1Data = [[NSDTA Alloc] initWithContentsOfFile: soundFile1Path]; NSDTA * wav2Data = [[NSDTA Elok] Init with contentoff file: SoundFile2 path]; Now what I am doing, create WOVE 1 data and Wave 2 data inside the loop and finally release them.
I have resolved the memory leak but now another issue has increased, in which the execution of for loop has slowed considerably. This should be due to the fact that IIM is starting the contents of a file on every move.
Any suggestions or ideas?
What could I see here that your application may be mainly crashing because you do a large operation On the UI thread you need to implement this operation in the non-UI / background thread. Here's how you can do it:
NSoption queue * Q = [NSOction QUUU]; NSInvocationOperation * operation = [[NSInvocationOperation alloc] initWithTarget: Self Selector: @selector (processWave :) Item: Zero; [Add row operation: operation]; [Operation Release]; [Queue release]; OR
[NSThread detachNewThreadSelector: @selector (processWave) toTarget: Object with self: NULL]; To not mention you may need to create processWave () by yourself
I should know that if it still crashes
Comments
Post a Comment