Re: AUEffectBase::ChangeStreamFormat changes sOld
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