• 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: Rob Nikander <email@hidden>
  • Date: Sat, 17 Aug 2013 12:55:42 -0400

Thanks. 

I also just read more about AUs and learned that in global scope, you can't ask for anything other than element 0; so perhaps kAudioUnitProperty_MaximumFramesPerSlice works as well. Both properties give the same number right now (512).

Rob


On Sat, Aug 17, 2013 at 12:05 PM, Dave Fernandes <email@hidden> wrote:
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)

This email sent to email@hidden


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

  • Prev by Date: Re: Recording with AUHAL, choose buffer size?
  • Next by Date: IAC v.s. Midi port
  • Previous by thread: Re: Recording with AUHAL, choose buffer size?
  • Next by thread: IAC v.s. Midi port
  • Index(es):
    • Date
    • Thread