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

GarageBand too clever by half.


  • Subject: GarageBand too clever by half.
  • From: Ian Kemmish <email@hidden>
  • Date: Wed, 8 Feb 2006 10:02:42 +0000

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?

My AU maintains a scheduler for internal events, which has to handle potentially thousands of events from less than a millisecond up to many minutes. When it comes to implementing the event queue, I have the choice of either aggressive cacheing or many expensive sorting operations. I opted for aggressive cacheing -- but this means that responding to changes in the value of inNumberFrames is a *very* expensive operation. If I need to sweat over improving this, I'd like to know....

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ian Kemmish 18 Durham Close, Biggleswade, Beds SG18 8HZ
email@hidden Tel: +44 1767 601361 Mob: +44 7952 854387
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



_______________________________________________ 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: Stefan Gretscher <email@hidden>
    • Re: GarageBand too clever by half.
      • From: kelly jacklin <email@hidden>
  • Prev by Date: Re: MIDI NoteOn velocity 0
  • Next by Date: Rosetta and AudioUnits
  • Previous by thread: Re: MIDI NoteOn velocity 0
  • Next by thread: Re: GarageBand too clever by half.
  • Index(es):
    • Date
    • Thread