• 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
question about AudioUnit render buffer size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

question about AudioUnit render buffer size


  • Subject: question about AudioUnit render buffer size
  • From: Brad Garton <email@hidden>
  • Date: Fri, 16 Apr 2010 12:18:32 -0400

Hey list --

I'm probably being really dense here:  I'd like to determine ahead-of-time the actual size (in frames) of the AudioBuffers used in the AudioUnitRender().  e.g. in this call:

	AudioUnitRender(rioUnit, ioActionFlags, inTimeStamp, 1, inNumberFrames, ioData);

I'd like to know what "inNumberFrames" will be prior to starting the AudioUnit (rioUnit is the RemoteIO AudioUnit I'm using).  Doing an

	AudioSessionGetProperty(kAudioSessionProperty_CurrentHardwareIOBufferDuration, ...)

doesn't seem to do the trick, and setting "kAudioSessionProperty_PreferredHardwareIOBufferDuration" won't *guarantee* an actual number, right?

In the simulator I'm always seeing 512 frames for these buffers, but on the device it seems to set it sort-of properly, but can I be sure (the "preferred" is bothering me)?  I'd like to get the Actual Real Number of frames.

brad
http://music.columbia.edu/~brad

 _______________________________________________
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: question about AudioUnit render buffer size
      • From: Christopher Penrose <email@hidden>
    • Re: question about AudioUnit render buffer size
      • From: James McCartney <email@hidden>
  • Prev by Date: iPad USB Audio
  • Next by Date: Re: question about AudioUnit render buffer size
  • Previous by thread: iPad USB Audio
  • Next by thread: Re: question about AudioUnit render buffer size
  • Index(es):
    • Date
    • Thread