Hi

I can not solve this problem : I try to add Inter App Audio to my iPad 
synthesizer, but I always encounter this message when I launch on the iPad:
error -66748 from registration server
I could read some informations and tried to use the Inter-App Audio Examples as 
template, none solution was founded. 
The provisioning profile adds IAA since the beginning even if I only try to 
implement it now. The info.plist seems to be right (I copied it from the 
template).

Could the problem come from the audioUnit? it is connected directly without any 
graph this way :

- (void) setUp{
(…)
    
AVAudioSession *session = [AVAudioSession sharedInstance];
    
    //(activation of the audio session)
//(adding kAudioSessionCategory_PlayAndRecord and 
kAudioSessionProperty_AudioInputAvailable to the session)
    
    (…)
    AudioComponentDescription cd = {0};
    cd.componentType = kAudioUnitType_Output;
    cd.componentSubType = kAudioUnitSubType_RemoteIO;
    cd.componentManufacturer = kAudioUnitManufacturer_Apple;
    cd.componentFlags = 0;
    cd.componentFlagsMask = 0;
    
    AudioComponent comp = AudioComponentFindNext (NULL, &cd);
    if (comp == NULL) {
        printf ("can't get output unit");
        exit (-1);
    }
    AudioComponentInstanceNew(comp, &dazUnit);   //dazUnit is the audioUnit
    
    // register render callback
    UInt32 oneFlag = 1;
    AudioUnitElement bus0 = 0;
    AudioUnitSetProperty (dazUnit,
                          kAudioOutputUnitProperty_EnableIO,
                          kAudioUnitScope_Output,
                          bus0,
                          &oneFlag,
                          sizeof(oneFlag));
    
    input.inputProc = MyAURenderCallback;   //the render of the synth
    input.inputProcRefCon = (__bridge void *)(self);
    
    AudioUnitElement bus1 = 1;
    AudioUnitSetProperty(dazUnit,
                         kAudioUnitProperty_SetRenderCallback,
                         kAudioUnitScope_Input,
                         0,
                         &input,
                         sizeof(input));
    
    //(I add after the kAudioUnitProperty_StreamFormat)
    // I initialize and start the audio unit
}

How do you think that I could resolve the issue? Thanks!

Herve Noury
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to