Paremeter changes by the user
Paremeter changes by the user
- Subject: Paremeter changes by the user
- From: Aristotel Digenis <email@hidden>
- Date: Wed, 16 Jun 2004 17:31:24 +0100
Hello,
I have recently started to learn programming for AudioUnits. I have been
using the SampleEffectUnit example that comes with the SDK to make a few
changes and experiment with things. I have now come to an absolute state
of confusion.
I have a parameter on the default GUI with a range between 0.0 and 1.0
with the default value at 0.0. I would like to make a simple gain effect
for the sake of learning about parameter control. I have declared a
"gainValue" float and i want when the slider is moved, that value to be
passed to the "gainvalue" float. gainValue will be used in the
processing section of the code to apply it to the samples as amplitude
(sample = sample * gainValue).
Does the getParameter() function automatically get called when the user
moves a slider in the default GUI just like it happens in VSTs? Having
read the documentation of the SDK it seems I need to use Listeners. And
this is where it gets confusing. There is a list of listener related
functions int eh documentation, then there posts in this mailing lists
which suggest the API is changing to a new method of dealing with
events. then there is the AUPropertiesPostPanther.h file which seems to
play a role in this change, yet I cannot compile my code if that header
is included ( i get tons of errors).
Could somebody explain how the AudioUnit knows when a slider has
moved?Is it event listener? or parameter listener?
Thank you in advance
--
Aristotel Digenis
email@hidden
http://www.digenis.ws
_______________________________________________
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.