Ahh, I thought that may be the case. Thanks Kymatica. On Sat, Feb 22, 2020 at 1:24 PM J Navarro <[email protected]> wrote:
> Ahh, I thought that may be the case. Thanks Kymatica. > > On Sat, Feb 22, 2020 at 12:51 PM Kymatica <[email protected]> wrote: > >> You should set the bus formats before allocateRenderResources, not >> afterwards. >> >> /Jonatan >> >> 22 feb. 2020 kl. 03:24 skrev J Navarro via Coreaudio-api < >> [email protected]>: >> >> >> >> 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 protected]> 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 protected]) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/coreaudio-api/lijon%40kymatica.com >> >> This email sent to [email protected] >> >> -- > -- > Sonic Kat > -- -- Sonic Kat
_______________________________________________ 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]
