• 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: AudioUnitRender returning kAudioUnitErr_InvalidPropertyValue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioUnitRender returning kAudioUnitErr_InvalidPropertyValue


  • Subject: Re: AudioUnitRender returning kAudioUnitErr_InvalidPropertyValue
  • From: Doug Wyatt <email@hidden>
  • Date: Tue, 13 Oct 2009 12:58:29 -0700


On Oct 13, 2009, at 12:24 , Christopher Liscio wrote:

I've been trying to track down a bug in my code, which boils down to a call to AudioUnitRender() returning kAudioUnitErr_InvalidPropertyValue (-10851).

I'm calling AudioUnitRender() on a generic output AU so I can write the rendered samples to a file using ExtAudioFile. I query the output AU's MaximumFramesPerSlice so I know what to pass into inNumberFrames.

If I play with the inNumberFrames parameter, to reduce the number of frames requested, then I can get the function to succeed. However, I'm not convinced that inNumberFrames is my problem---I would expect kAudioUnitErr_TooManyFramesToProcess (-10874) to be returned.

So why am I seeing -10851 as the return value? Should I be instead scrutinizing the AudioBufferList that's passed into the ioData parameter, or the inTimeStamp (which is correctly set to 0 in this case, as the first call fails), or something else entirely?

Thanks,

Chris Liscio
http://supermegaultragroovy.com
Learn _your_ music with Capo: http://capoapp.com

If it's an AppleAU on the desktop (check), and you're on SnowLeopard (I don't know), then this error is generated by the AU when it pulls for input and discovers that it was given a NULL buffer in its input buffer list. That's the only place I can see this being generated on the render path.


It's not the best error code, I know. Could have been worse: -50 :-/

Doug

_______________________________________________
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: AudioUnitRender returning kAudioUnitErr_InvalidPropertyValue
      • From: Christopher Liscio <email@hidden>
References: 
 >AudioUnitRender returning kAudioUnitErr_InvalidPropertyValue (From: Christopher Liscio <email@hidden>)

  • Prev by Date: AudioUnitRender returning kAudioUnitErr_InvalidPropertyValue
  • Next by Date: Re: AudioUnitRender returning kAudioUnitErr_InvalidPropertyValue
  • Previous by thread: AudioUnitRender returning kAudioUnitErr_InvalidPropertyValue
  • Next by thread: Re: AudioUnitRender returning kAudioUnitErr_InvalidPropertyValue
  • Index(es):
    • Date
    • Thread