• 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
Sound Recording
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sound Recording


  • Subject: Sound Recording
  • From: "Bankim Bhavsar" <email@hidden>
  • Date: Wed, 27 Aug 2008 21:56:03 -0700

We setup AudioUnit for sound recording specifying the input callback
function with prototype of AURenderCallback.

Inside the callback we use AudioUnitRender with the same timestamp and
flags to render audio data. We need to render to a circular buffer
which has a head and tail index, consumed by another thread.

Currently we create a shadow buffer, render to it and then copy bytes
to the circular buffer by breaking up the data to wrap around as
necessary.

Ideally we want to render to the circular buffer directly to avoid
this extra copy.

I see 1 possible way:
When invoking AudioUnitRender inside the callback, specify
numberFrames which can be adjusted for size of remaining circular
buffer. (potentially less than numberFrames supplied with
AURenderCallback)
But with this approach when next time AURenderCallBack is invoked will
I get the data  immediately starting from where rendering finished
last time? Do I need to adjust timestamp for this? If so any pointers
how to do so?

I'll appreciate help in this regard.

Thanks,
Bankim.
 _______________________________________________
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:
    • 10.2.8 compatible Audio Unit compilation on Leopard.
      • From: Adrian Pflugshaupt <email@hidden>
  • Prev by Date: Re: Test report MBP built-in audio device
  • Next by Date: Re: Test report MBP built-in audio device
  • Previous by thread: Re: AudioQueue Crossfading does not work
  • Next by thread: 10.2.8 compatible Audio Unit compilation on Leopard.
  • Index(es):
    • Date
    • Thread