Re: Can anyone comment on Crashes in AUParameterSet?
Re: Can anyone comment on Crashes in AUParameterSet?
- Subject: Re: Can anyone comment on Crashes in AUParameterSet?
- From: Marc Poirier <email@hidden>
- Date: Tue, 27 May 2003 18:46:50 +0200 (CEST)
On Tue, 27 May 2003, Shai Shasag wrote:
>
Thanks to all those who answered, much appreciated!
>
>
>
I'm trying to check the arguments to AUParameterSet.
>
>
My code looks like this:
>
>
const AudioUnitParameter inParameter = {GetComponentInstance(),
>
lParamID kAudioUnitScope_Global, 0};
>
OSStatus cErr = ::AUParameterSet(nil, nil, &inParameter, newValue, 0);
>
>
The 1st & 2nd parameters are nil and that's should be OK according to
>
the documentation.
>
I was worried about the third one being on the stack, if
>
AUParameterSet returns before using the pointer this could be a
>
problem.
>
The 4th and 5th parameters are not pointers.
>
>
So it might be that AUParameterSet is an async call? I would be
>
surprised if it was.
I'm pretty positive that AUParameterSet is a convenience function that
calls AudioUnitSetParameter and AUParameterListenerNotify, and
AUParameterListenerNotify is asynchronous (the notifications go into a
queue and are read when the listeners' read loops next fire and pull
notifications out of the queue).
Marc
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.