3
我試圖預裝了一堆的背景音樂文件。基本上我打電話preloadBackgroundMusic幾次。這打破了我,當我與SimpleAudioEngine嘗試:預加載多個背景音樂
[[SimpleAudioEngine sharedEngine] preloadBackgroundMusic:@"vitesse1.mp3"]; [[SimpleAudioEngine sharedEngine] preloadBackgroundMusic:@"vitesse1.mp3"];
但是當我使用CDAudioManager,我得到泄漏當我嘗試以釋放在我的類中聲明的CDAudioManager對象:
CDAudioManager *localAm = [CDAudioManager sharedManager];
[localAm preloadBackgroundMusic:@"vitesse9.caf"];
[localAm preloadBackgroundMusic:@"vitesse10.caf"];
[localAm preloadBackgroundMusic:@"vitesse11.caf"];
[localAm release];
任何人可以提供一些線索或已expereinece類似的東西?