Ok so I was trying to do this with Apples built in AUs, which did not work. But third party ones are working.
On Fri, Feb 21, 2020 at 6:23 PM J Navarro <[email protected]> wrote: > 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 > -- -- 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]
