So my code works for about 90% of people. The rest get a crash at launch. I figure with all the memory I'm tying up here, this is the problem?
Maybe i shouldn't use an array as such?
for(i=60;i<80;i++){
myNewString = [NSMutableString stringWithFormat:@"%i", i ];
if (finchKeys[i]==nil)
finchKeys[i] = [[Sound alloc] initWithFile:
[[NSBundle mainBundle] URLForResource:myNewString withExtension:@"wav"]];
}
Is there something I can call to free up memory before I load my wavs?
thanks!!
I imagine you're not playing all of the wavs at once. Why not just save the wav url in your Sound class instead of the whole wav? Then you can just load each wav when you need to play it.