• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AUEffectBase::ChangeStreamFormat changes sOld
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: AUEffectBase::ChangeStreamFormat changes sOld
      • From: Marc Poirier <email@hidden>
    • Re: AUEffectBase::ChangeStreamFormat changes sOld
      • From: Brian Willoughby <email@hidden>
    • Re: AUEffectBase::ChangeStreamFormat changes sOld
      • From: kelly jacklin <email@hidden>
  • Prev by Date: AU Host problem
  • Next by Date: Re: AUEffectBase::ChangeStreamFormat changes sOld
  • Previous by thread: AU Host problem
  • Next by thread: Re: AUEffectBase::ChangeStreamFormat changes sOld
  • Index(es):
    • Date
    • Thread