1

AVFoundationを使用してiPhoneシミュレーターでオーディオを録音すると、次のエラーが発生します。私のコードはデバイス上で正常に動作します。

何か案は?前もって感謝します。

2012-09-15 17:51:39.592 MySpellings [538:3503]/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn:dlopen(/ System / Library /拡張機能/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn、262):シンボルが見つかりません:__ CFObjCIsCollectable参照元:/System/Library/Frameworks/Security.framework/Versions/A/Security
予想される場所:/Systems/Library/Frameworks/Securityの/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation .framework / Versions / A / Security 2012-09-15 17:51:39.598 MySpellings [538:3503]/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):シンボルが見つかりません:_
_CFObjCIsCollectable参照元:/System/Library/Frameworks/Security.framework / Versions /A/セキュリティ
予想される場所:/Systems/Library/Frameworks/Securityの/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation .framework / Versions / A / Security 2012-09-15 17:51:39.607 MySpellings [538:3503]/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):シンボルが見つかりません:__ CFObjCIsCollectable参照元:/System/Library/Frameworks/Security.framework / Versions /A/セキュリティ
予想される場所:/Systems/Library/Frameworks/Securityの/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation .framework / Versions / A / Security 2012-09-15 17:51:39.612 MySpellings [538:3503]/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):シンボルが見つかりません:_
_CFObjCIsCollectable参照元:/System/Library/Frameworks/Security.framework / Versions /A/セキュリティ
予想される場所:/System/Library/Frameworks/Securityの/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation .framework / Versions / A / Security 2012-09-15 17:51:40.932 MySpellings [538:4907] aq @ 0xea13200:ConvertInput:AudioConverterFillComplexBufferが560226676を返し、packetCount 21 2012-09-15 17:51:42.254 MySpellings [538: c07]保留中の入力のフラッシュが終了しました-エラー'!dat'

4

2 に答える 2

0

私の場合、間違ったビットレートを使用したためにエラーが表示されました:

Kbpsを使っていたことを忘れてAVEncoderBitRateKeybpsを使っています。そのため、ビットレートを に掛けると1000、エラーはなくなりました。

于 2015-02-15T11:30:20.877 に答える
-1

また、m4a 形式 (AVFormatIDKey = kAudioFormatMPEG4AAC) に録音するときに、シミュレーターでオーディオを録音するときに問題が発生しました。オーディオが記録されず、コンソール ログに「AudioConverterFillComplexBuffer」のエラーが含まれていました。

ただし、.caf 形式 (kAudioFormatAppleIMA4) への録音は機能するため、一部の人にとっては回避策となる可能性があります。

recordSettings = [NSDictionary
                  dictionaryWithObjectsAndKeys:
                  [NSNumber numberWithInt:AVAudioQualityMin],
                  AVEncoderAudioQualityKey,
                  [NSNumber numberWithInt:16],
                  AVEncoderBitRateKey,
                  [NSNumber numberWithInt: 1],
                  AVNumberOfChannelsKey,
                  [NSNumber numberWithFloat:16000.0],
                  AVSampleRateKey,
                  [NSNumber numberWithInt: kAudioFormatAppleIMA4],
                  AVFormatIDKey,
                  nil];
于 2014-06-26T08:47:04.850 に答える