• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AUAudiounit not rendering
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AUAudiounit not rendering


  • Subject: Re: AUAudiounit not rendering
  • From: J Navarro via Coreaudio-api <email@hidden>
  • Date: Sat, 22 Feb 2020 10:50:55 -0800

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@hidden> 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@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
>
--
--
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

References: 
 >Re: AUAudiounit not rendering (From: J Navarro via Coreaudio-api <email@hidden>)

  • Prev by Date: Re: AUAudiounit not rendering
  • Next by Date: Re: AUAudiounit not rendering
  • Previous by thread: Re: AUAudiounit not rendering
  • Next by thread: Re: AUAudiounit not rendering
  • Index(es):
    • Date
    • Thread