我最近开始使用 AudioToolbox 框架,并注意到有一个名为AudioServicesDisposeSystemSoundID()
.
AudioServicesCreateSystemSoundID()
只是要知道,在调用init my时不调用上述方法是否是内存泄漏SystemSoundID
?我这样称呼它:
AudioServicesCreateSystemSoundID((CFURLRef)filePath, &sound);
这样 filePath 是 NSURL 和 sound SystemSoundID
。