![]() |
|
Releasing System sounds - Printable Version +- iDevGames Forums (http://www.idevgames.com/forums) +-- Forum: Development Zone (/forum-3.html) +--- Forum: Game Programming Fundamentals (/forum-7.html) +--- Thread: Releasing System sounds (/thread-384.html) |
Releasing System sounds - MacSteve85 - Jan 29, 2010 07:15 PM I need help!!!!!! I have 4 view controllers and each one has it's own XIB, and each view controller has 4 system sounds and I need to know how to release them I am creating them by using this code: NSURL *filePath4 = [NSURL fileURLWithPath:path4 isDirectory:NO]; AudioServicesCreateSystemSoundID((CFURLRef)filePath4, &DogBark); And I have declared "DogBark" in the .H file And I need to know how to release it. I have tried using this code in the "dealloc" method: AudioServicesDisposeSystemSoundID (DogBark); But I put an NSLog statement in this method and it is not showing that it is being invoked. What do I need to do? Releasing System sounds - SethWillits - Jan 30, 2010 02:18 PM Well, this has nothing to do with the sound at all. Your view controller isn't being deallocated. When are you expecting it to be? Releasing System sounds - MacSteve85 - Jan 30, 2010 06:14 PM So what do I need to do! Releasing System sounds - MacSteve85 - Jan 30, 2010 06:15 PM So what do I need to do! How do I need to release my viewcontrollers! |