I'm trying to publish an AudioUnit generator on iOS. When I call
- (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");
}
}
I get the console message:
ERROR: [0x39d1518c] 225: error -66748 from registration server
with -66748
as the status. Google isn't helping me and neither are the docs.
I'm getting no other errors setting up my audio session, and using all the latest (iOS 7) AVAudioSession APIs.
Is there some secret I'm missing?