• 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
Recording with AUHAL, choose buffer size?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Recording with AUHAL, choose buffer size?


  • Subject: Recording with AUHAL, choose buffer size?
  • From: Rob Nikander <email@hidden>
  • Date: Sat, 17 Aug 2013 11:47:29 -0400

Hi,

In short: how do I know what the frame count will be, so that I can allocate AudioBufferLists before recording?

I'm following the tech note here:

http://developer.apple.com/library/mac/technotes/tn2091/_index.html

To allocate the AudioBufferLists I think I need to know how many frames it will be giving me in each render cycle --  the value of the `nFrames' parameter that will get passed to the input callback...

OSStatus myInputCallback(void *, AudioUnitRenderActionFlags *, const AudioTimeStamp *, UInt32, UInt32 nFrames, AudioBufferList *ioAbl) { ...

How do I get that from the audio unit's properties? kAudioUnitProperty_MaximumFramesPerSlice looked promising, but when I tried to read it off the input bus/element, I got the error: kAudioUnitErr_InvalidElement.

thanks,

Rob

 _______________________________________________
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: Recording with AUHAL, choose buffer size?
      • From: Dave Fernandes <email@hidden>
  • Prev by Date: Re: Crash on AudioRouteKey Compare
  • Next by Date: Re: Recording with AUHAL, choose buffer size?
  • Previous by thread: Re: coreaudiod crashes with userland drivers and Apple apps
  • Next by thread: Re: Recording with AUHAL, choose buffer size?
  • Index(es):
    • Date
    • Thread