我想发布在iOS的AudioUnit发生器。当我打电话
- (void)publishOutputAudioUnit {
AudioComponentDescription desc = { kAudioUnitType_RemoteGenerator, 'anap', 'cwcw', 0, 0 };
OSStatus status = AudioOutputUnitPublish(&desc, CFSTR("My app"), 1, m_au);
if (status) {
DLog(@"Couldn't publish audio unit");
}
}
我得到的控制台消息:
ERROR: [0x39d1518c] 225: error -66748 from registration server
与-66748
作为状态。 Google isn't helping me和neither are the docs。
我没有得到其他错误设置我的音频会议,并利用所有最新的(的iOS 7)AVAudioSession的API。
是否有一些秘密的我失踪?
我需要做的是一个条目添加到Info.plist中:
AudioComponents (Array)
(item 0) (Dictionary)
version
manufacturer
name
type
subtype
或者,在原始形式:
<array>
<dict>
<key>version</key>
<integer>1</integer>
<key>manufacturer</key>
<string>cwcw</string>
<key>name</key>
<string>My amazing app</string>
<key>type</key>
<string>aurg</string>
<key>subtype</key>
<string>shkr</string>
</dict>
</array>
</plist>
我也打了同样的问题。甚至当我在AudioComponents
有Info.plist
,呼吁AudioComponentDescription(..)
失败,相同的错误-66748 (kAudioComponentErr_NotPermitted)
最后,我下定决心,这也需要有在CFBundleDisplayName
文件Info.plist
项目。