Re: AUAudiounit not rendering
Re: AUAudiounit not rendering
- Subject: Re: AUAudiounit not rendering
- From: J Navarro via Coreaudio-api <email@hidden>
- Date: Fri, 21 Feb 2020 18:23:40 -0800
Damn I was not subscribed to the list. If anyone answered already I didn’t
get it. Sorry.
On Fri, Feb 21, 2020 at 2:24 PM J Navarro <email@hidden> wrote:
> Hi guys, I need some help with rendering an AUAudioUnit. I have created it
> with:
>
> [AUAudioUnit
> instantiateWithComponentDescription:compon.audioComponentDescription
> options:0 completionHandler:^(AUAudioUnit * __nullable audioUnit, NSError *
> __nullable error) {
>
> if (error != nil || audioUnit == nil) { return ; }
>
> NSError *err;
> [audioUnit allocateRenderResourcesAndReturnError:&err];
>
> AVAudioFormat *format = [self.audioEngine.outputNode
> outputFormatForBus:0]; [[audioUnit.inputBusses objectAtIndexedSubscript:0]
> setFormat:format error:nil];
> [[audioUnit.outputBusses objectAtIndexedSubscript:0] setFormat:format
> error:nil];
>
> As you can see I’m allocating the render resources, then I’m setting the
> format of the input and output.
>
> I’m calling the .renderBlock on e each buffer callback, setting the
> rendering flags to 0, giving it the buffer list that needs to be filled,
> and giving it an input block, which sets the buffer list to buffers of
> incoming audio.
>
> The renderBlock doesn’t call my input block, and returns an OSStatus of
> -10876, which is
>
> kAudioUnitErr_NoConnection
>
> What do I have to do to get this thing to render? Thanks.
>
> --
--
Sonic Kat
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden