I would like to ask you guys help me a bit with a weird problem. What
I need to do is realtime parameter smoothing. I do it like this: I
have a parameter variable and a private state variable. Before the
while() cycle in Process(), I calculate the smoothing step as
(parameter - state variable) / number of frames. Then in the while()
cycle I advance by 1 step, and also set the state variable to last
parameter value after while(). I also set this state variable to 0 in
Reset(). This always worked fine in other plugin format.
However, sometimes in the Wave Editor host I get random values for
the state variable, like -inf or +inf or 534 etc. when it's from 0 to
1 by definition... No memleaks in my plugin, I tested in auval and
Garage Band (though quite a lot of leaks in WE: http://artemio.net/
tmp/Leaks.txt).
But what is weird is I can't blame WE at all as it seems to only
happen it my plugin!
To track everything down I started a new clean AU project, added just
a few lines and this still happens. The complete code snippets are
below (also note I do not do sanity checks for variables (e.g. see if
they are in the 0..1 range etc.) but this does not work anyway if the
variable is -inf or +inf):
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden