• 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: Paremeter changes by the user
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Paremeter changes by the user


  • Subject: Re: Paremeter changes by the user
  • From: Brian Willoughby <email@hidden>
  • Date: Thu, 17 Jun 2004 14:31:42 -0700

There may be no need to have a variable that is updated. You could simply
wait until the render call and set a local variable by calling GetParameter().
Depending upon which CoreAudio effect class you use, this technique will even
support sample-acurate parameter changes, because render will be called with
smaller buffers as the parameter changes.

The only truly necessary class variables in AudioUnits are state variables
which need to be maintained between render calls. All parameters can be loaded
into local register variables using GetParameter() before beginning the
processing loop.

Brian Willoughby
Sound Consulting


Begin forwarded message:

That is starting to make things clearer but I still have a few questions
I would like to understand. Since the UI calls the SetParameter function
automatically. So this would mean that I need to override/redefine the
SetParameter function so that there is a switch command to check which
parameter has been updated and update the coresponding variable.
_______________________________________________
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.


  • Follow-Ups:
    • Re: Paremeter changes by the user
      • From: William Stewart <email@hidden>
References: 
 >Paremeter changes by the user (From: Aristotel Digenis <email@hidden>)
 >Re: Paremeter changes by the user (From: William Stewart <email@hidden>)
 >Re: Paremeter changes by the user (From: Aristotel Digenis <email@hidden>)

  • Prev by Date: Re: ChannelMap and SampleRate change weirdness
  • Next by Date: kAUPresetExternalFileRefs string representations
  • Previous by thread: Re: Paremeter changes by the user
  • Next by thread: Re: Paremeter changes by the user
  • Index(es):
    • Date
    • Thread