• 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: Q: Setting the size of an AudioUnit buffer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Q: Setting the size of an AudioUnit buffer?


  • Subject: Re: Q: Setting the size of an AudioUnit buffer?
  • From: Marc Poirier <email@hidden>
  • Date: Sun, 1 Feb 2004 14:24:44 -0600 (CST)

You want to set the MaximumFramesPerSlice property (or maybe it's called
MaxFramesPerSlice, but whatever, that's the one).

Marc



On Fri, 30 Jan 2004, Lance Drake wrote:

> Hi Core-Audio folks,
>
> After pouring thru the online literature, reading the CoreAudio.pdf
> and scanning thru the headers, I have still not determined how to set
> the size of the AudioUnit buffer - or where the default value of
> 512-packets comes from.
>
> As it is, my chore of reading a file to audio is grabbing 512
> packets at a clip via the 'ioNumberDataPackets' quantity sent to my
> inputProcessor routine as setup by the call to
> AudioConverterFillComplexBuffer which is getting this number from the
> render process specified by the call to AudioUnitSetProperty where the
> property is kAudioUnitProperty_SetRenderCallback.
>
> The solution (I imagine) is to also make a call to
> AudioUnitSetProperty with the property of
> kAudioUnitProperty_SetExternalBuffer - but what args I should send in
> with that call.
>
> The net result is what sounds like halting audio output that seems
> to be a result of the buffer being starved because the OS is off doing
> other things. My thought was that if I use a larger buffer, this
> negative effect would be eliminated.
>
> Thanks for your assistance,
>
> Lance Drake
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: PostConstructor vs Initialize (AU's built-in Parameter Implementation)
  • Next by Date: Re: Communicating between an audiounit and cocoa view?
  • Previous by thread: Re: PostConstructor vs Initialize (AU's built-in Parameter Implementation)
  • Next by thread: Re: Q: Setting the size of an AudioUnit buffer?
  • Index(es):
    • Date
    • Thread