从注册服务器错误发布音频单元时

问题描述 投票:4回答:2

我想发布在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 meneither are the docs

我没有得到其他错误设置我的音频会议,并利用所有最新的(的iOS 7)AVAudioSession的API。

是否有一些秘密的我失踪?

ios audiounit avaudiosession remoteio
2个回答
1
投票

我需要做的是一个条目添加到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>

0
投票

我也打了同样的问题。甚至当我在AudioComponentsInfo.plist,呼吁AudioComponentDescription(..)失败,相同的错误-66748 (kAudioComponentErr_NotPermitted)

最后,我下定决心,这也需要有在CFBundleDisplayName文件Info.plist项目。

© www.soinside.com 2019 - 2024. All rights reserved.