2012-07-17 72 views
0

我在我的代码中添加了音效。但是,当我启动我的应用程序,并首先点击按钮,它需要一段时间然后工作。它只在第一次点击时发生,否则在其他按钮点击它时会很快发生。它显示我像单击按钮上的音效

2012-07-17 12:51:22.240 PainReporter[6882:16503] Error loading /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn: dlopen(/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn, 262): Symbol not found: ___CFObjCIsCollectable 
    Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security 
    Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation 
in /System/Library/Frameworks/Security.framework/Versions/A/Security 
+0

你在用什么玩家? – Bazinga 2012-07-17 07:45:52

回答

1

我有这种事发生在我索姆错误。我从来没有想清楚为什么会发生这种情况,但只有在模拟器中运行时才会发生。

除此之外,如果您使用AVFoundation播放音频,请确保您拨打prepareToPlay。这样做应该有助于开始播放声音所需的时间。