Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Audio Units: weirdness happens in Reset()



Hello all!

I have been struggling to solve this for quite a few days by now.

Basically, I have several state variables defined as public: in the main class. These variables are all set to 0.0 in Reset(). And then you know how it goes - before the "while (nSampleFrames-- > 0) ..." cycle I set a local variable to the state variable's value, then set the state variable to the local variable's value after the cycle. Nothing special, except that after Reset() is called, one of the variables may get a value of +inf or nan (even if it is left untouched in the process cycle!). How in the world could this be happening if Reset() explicitly sets them to 0.0?

My AU passes all of the auval tests just fine. I should also note that this seems to only happen in Wave Editor and not in Garage Band, though Evan (the nice Wave Editor developer) correctly suggested that the host doesn't have to do with what happens inside Reset()... unless it somehow fiddles with the parameter values too somehow... I am really puzzled :-/


All the best,

Artemiy.


_______________________________________________ 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

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.