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

Re: Recording with AUHAL, choose buffer size?


  • Subject: Re: Recording with AUHAL, choose buffer size?
  • From: Dave Fernandes <email@hidden>
  • Date: Sat, 17 Aug 2013 12:05:09 -0400

kAudioDevicePropertyBufferFrameSize tells you the number of frames in the internal buffer (global scope).

On 2013-08-17, at 11:47 AM, Rob Nikander <email@hidden> wrote:

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: Rob Nikander <email@hidden>
References: 
 >Recording with AUHAL, choose buffer size? (From: Rob Nikander <email@hidden>)

  • Prev by Date: Recording with AUHAL, choose buffer size?
  • Next by Date: Re: Recording with AUHAL, choose buffer size?
  • Previous by thread: Recording with AUHAL, choose buffer size?
  • Next by thread: Re: Recording with AUHAL, choose buffer size?
  • Index(es):
    • Date
    • Thread