• 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: Newbie sound input help (or, why _can't_ you do it in this context?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie sound input help (or, why _can't_ you do it in this context?)


  • Subject: Re: Newbie sound input help (or, why _can't_ you do it in this context?)
  • From: Doug Wyatt <email@hidden>
  • Date: Wed, 19 Jul 2006 11:10:27 -0700

On Jul 19, 2006, at 10:59 , John Haggerty wrote:
OK, it turns out I missed a key point: I had set the output sample rate to be different than the hardware sample rate. Apparently, converting sample rates in the callback thread is what it CannotDoInCurrentContext. So now I cache the captured data and set up an AudioConverter, which seems to be doing more or less what I want, except that the call to AudioConverterFillComplexBuffer often returns with the error 1768846202, which I am interpreting as "insz", which also mystifies me. Any idea what this means? (And, BTW, what is up with the "sometimes it's an integer, sometimes it's an undocumented 4-character string" error codes?

From AudioConverter.h:

	kAudioConverterErr_InvalidInputSize			= 'insz',

Your input callback function is returning an invalid combination of byte size in the AudioBufferList and packet count.

Doug

--
Doug Wyatt
Core Audio, Apple

_______________________________________________
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: 
 >Newbie sound input help (or, why _can't_ you do it in this context?) (From: "John Haggerty" <email@hidden>)
 >Re: Newbie sound input help (or, why _can't_ you do it in this context?) (From: Mark Pauley <email@hidden>)
 >Re: Newbie sound input help (or, why _can't_ you do it in this context?) (From: "John Haggerty" <email@hidden>)

  • Prev by Date: Re: Newbie sound input help (or, why _can't_ you do it in this context?)
  • Next by Date: Re: Host Callback Methods and OSStatus
  • Previous by thread: Re: Newbie sound input help (or, why _can't_ you do it in this context?)
  • Next by thread: Number of frames in Render()
  • Index(es):
    • Date
    • Thread