Mailing Lists: Apple Mailing Lists

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

Re: Audio Units: weirdness happens in Reset()



It sounds to me like you are overwriting memory - there are a couple of debug options on the auval readme that describe how to run with these various options - I'd explore them

Bill

On 28/06/2006, at 1:35 PM, Artemiy Pavlov wrote:

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

--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __


_______________________________________________
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
References: 
 >Audio Units: weirdness happens in Reset() (From: Artemiy Pavlov <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.