• 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: GarageBand too clever by half.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GarageBand too clever by half.


  • Subject: Re: GarageBand too clever by half.
  • From: kelly jacklin <email@hidden>
  • Date: Wed, 8 Feb 2006 05:56:11 -0800

On Feb 8, 2006, at 2:02 AM, Ian Kemmish wrote:

I have observed that when GarageBand calls my MusicDevice AU's Render method, the first three calls have inNumberFrames equal to 1024, and the fourth and subsequent calls have it equal to 256.

Is it expected that calling Render with varying values for inNumberFrames is a rare or a common thing to happen?

Well, very common in certain cases. For example, if your plugin is being run downstream of a sample-rate conversion, you will definitely see varying inNumberFrames values as the SRC either needs more or fewer sample frames to cover the downstream pull. Usually this varies by only a couple frames from call to call, except that the first call will typically ask for more as is needed to prime the SRC (IIRC).


However, an AU host is free to do divvy up its requests however it likes as long as it does request a number of samples in excess of the MaxFramesPerSlice property it has set on your AU. I know of at least two hosts that will preroll audio before beginning playback, in a fashion similar to what you are seeing.

In addition, this can vary even more radically if your AU is being used in an offline fashion (as an export/bounce/render operation), where the size of requests really need have no correlation to a regular pull size...

kelly

_______________________________________________
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: GarageBand too clever by half.
      • From: kelly jacklin <email@hidden>
References: 
 >GarageBand too clever by half. (From: Ian Kemmish <email@hidden>)

  • Prev by Date: [OT] A good linein mic?
  • Next by Date: Re: GarageBand too clever by half.
  • Previous by thread: GarageBand too clever by half.
  • Next by thread: Re: GarageBand too clever by half.
  • Index(es):
    • Date
    • Thread