• 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: Offline rendering in a AUGraph using a Generic Output node on iOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Offline rendering in a AUGraph using a Generic Output node on iOS


  • Subject: Re: Offline rendering in a AUGraph using a Generic Output node on iOS
  • From: Chris Adamson <email@hidden>
  • Date: Mon, 04 Mar 2013 06:50:39 -0500

Yeah, if you don't explicitly the format for output scope / bus 0, you'll get a default value.

Once you've built your graph, how about you do:

AudioStreamBasicDescription outFormat = {};
OSErr err = AudioUnitGetProperty (outputUnit, kAudioUnitPropertyStreamFormat, kAudioUnitScope_Output, 0, &outFormat);

Then set a breakpoint after this and inspect outFormat in the debugger. In particular, look at the value of mFormatFlags and see if kAudioFormatFlagIsNonInterleaved bit (1 << 5, aka 0x20) is set. That'll help you figure out if the AudioBufferList you use should have one AudioBuffer or two.

Just a shot, but I've had problems with -50 on AudioUnitRender multiple times that turned out to be having the wrong number of AudioBuffers in my ABL.

--Chris

On Mar 4, 2013, at 6:17 AM, David Blake <email@hidden> wrote:

I notice you say the outputUnits output scope though, I am only setting the input scope - could this be the problem?

Thanks for any insight you can give!

 _______________________________________________
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

  • Follow-Ups:
    • Re: Offline rendering in a AUGraph using a Generic Output node on iOS
      • From: David Blake <email@hidden>
References: 
 >Offline rendering in a AUGraph using a Generic Output node on iOS (From: David Blake <email@hidden>)
 >Re: Offline rendering in a AUGraph using a Generic Output node on iOS (From: Chris Adamson <email@hidden>)
 >Re: Offline rendering in a AUGraph using a Generic Output node on iOS (From: David Blake <email@hidden>)

  • Prev by Date: Re: Offline rendering in a AUGraph using a Generic Output node on iOS
  • Next by Date: Re: Offline rendering in a AUGraph using a Generic Output node on iOS
  • Previous by thread: Re: Offline rendering in a AUGraph using a Generic Output node on iOS
  • Next by thread: Re: Offline rendering in a AUGraph using a Generic Output node on iOS
  • Index(es):
    • Date
    • Thread