Re: AUAudiounit not rendering
Re: AUAudiounit not rendering
- Subject: Re: AUAudiounit not rendering
- From: J Navarro via Coreaudio-api <email@hidden>
- Date: Sat, 22 Feb 2020 13:25:45 -0800
Ahh, I thought that may be the case. Thanks Kymatica.
On Sat, Feb 22, 2020 at 1:24 PM J Navarro <email@hidden> wrote:
> Ahh, I thought that may be the case. Thanks Kymatica.
>
> On Sat, Feb 22, 2020 at 12:51 PM Kymatica <email@hidden> 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@hidden>:
>>
>>
>>
>> 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
>>
>> --
> --
> Sonic Kat
>
--
--
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