AUEffectBase::ChangeStreamFormat changes sOld
AUEffectBase::ChangeStreamFormat changes sOld
- Subject: AUEffectBase::ChangeStreamFormat changes sOld
- From: Shai Shasag <email@hidden>
- Date: Wed, 29 Sep 2004 13:58:22 +0200
My AU overrides and implements the ChangeStreamFormat function.
When the sample rate of the session has changed (ie. under Logic)
ChangeStreamFormat gets called with the parameters:
const CAStreamBasicDescription& sOld, const CAStreamBasicDescription&
sNew
Where sOld.mSampleRate holds the current sample rate and sNew
.mSampleRate hold the new.
My code than calls AUEffectBase::ChangeStreamFormat passing sOld and
sNew.
When AUEffectBase::ChangeStreamFormat returns, sOld.mSampleRate holds
the NEW sample rate!
This happens despite the fact that sOld is defined as const
CAStreamBasicDescription&.
Why is this happening?
Shai Shasag
Senior Software Engineer
Waves Audio Ltd.
Phone: +972-36084007; Fax: +972-36084056;
------------------------------------------------------------------------
------------
"Perfection is achieved, not when there is nothing more to add,
but when there is nothing left to take away." - Antoine de Saint Exupery
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden