• 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
Re: AUEffectBase::ChangeStreamFormat changes sOld
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AUEffectBase::ChangeStreamFormat changes sOld


  • Subject: Re: AUEffectBase::ChangeStreamFormat changes sOld
  • From: William Stewart <email@hidden>
  • Date: Wed, 29 Sep 2004 11:21:56 -0700

One other thing it is worth baring in mind.

The host is not going to use your AU until it has initialized it (and it
will uninitialize you to change the format)...

So, rather than doing this in ChangeStreamFormat, you could make the
adjustments you need to make in the Initialize call - in fact, we have been
recommending for some time that format related activities in the AU be done
as the AU is initialized (rather than when the format is changed explicitly)

We've not released a version of the SDK that contains a fix to this problem
that Marc first pointed out (as he details in the link below)

Bill

On 29/9/04 7:19 AM, "Marc Poirier" <email@hidden> wrote:

> On Sep 29, 2004, at 7:58 AM, Shai Shasag wrote:
>
>> 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?
>
>
> http://lists.apple.com/archives/coreaudio-api/2004/Jul/msg00185.html
>
>  _______________________________________________
> 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

--
mailto:email@hidden
tel: +1 408 974 4056

__________________________________________________________________________
Culture Ship Names:
Ravished By The Sheer Implausibility Of That Last Statement [GSV]
I said, I've Got A Big Stick [OU]
Inappropiate Response [OU]
Far Over The Borders Of Insanity And Still Accelerating [Eccentric]
__________________________________________________________________________



 _______________________________________________
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

References: 
 >Re: AUEffectBase::ChangeStreamFormat changes sOld (From: Marc Poirier <email@hidden>)

  • Prev by Date: Re: How to monitor what is being recorded?
  • Next by Date: Re: No dolby/DTS with DVD player?
  • Previous by thread: Re: AUEffectBase::ChangeStreamFormat changes sOld
  • Next by thread: Logic 7 shipping now
  • Index(es):
    • Date
    • Thread