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

AudioUnitRender returning kAudioUnitErr_InvalidPropertyValue


  • Subject: AudioUnitRender returning kAudioUnitErr_InvalidPropertyValue
  • From: Christopher Liscio <email@hidden>
  • Date: Tue, 13 Oct 2009 15:24:24 -0400

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
_______________________________________________
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: Doug Wyatt <email@hidden>
  • Prev by Date: Re: Recommended way to handle suspend/resume on notebooks
  • Next by Date: Re: AudioUnitRender returning kAudioUnitErr_InvalidPropertyValue
  • Previous by thread: Re: ExtAudioFileSetProperty ClientDataFormat error on iPhone
  • Next by thread: Re: AudioUnitRender returning kAudioUnitErr_InvalidPropertyValue
  • Index(es):
    • Date
    • Thread