2012-07-17 80 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。這樣做應該有助於開始播放聲音所需的時間。