Re: AUGraphRemoveNode and kAudioUnitUninitializeSelect
Re: AUGraphRemoveNode and kAudioUnitUninitializeSelect
- Subject: Re: AUGraphRemoveNode and kAudioUnitUninitializeSelect
- From: Eric Eizenman <email@hidden>
- Date: Tue, 6 Jul 2004 12:52:33 -0700
I am using the latest SDK. The thing is that the call to DoCleanup() is
coming from kComponentCloseSelect and not kAudioUnitUninitializeSelect.
I was assuming that there would be kAudioUnitUninitializeSelect before
kComponentCloseSelect.
So I shouldn't assume that kAudioUnitUninitializeSelect is going to be
called and do the clean up in my destructor as well.
------------------------------------------------------------------
Eric Eizenman
BIAS Inc., Audio Software Development
------------------------------------------------------------------
On Jul 6, 2004, at 11:53 AM, Marc Poirier wrote:
On Tue, 6 Jul 2004, Eric Eizenman wrote:
AUGraphRemoveNode() removes the specified node from the graph. There
is
a call to AUGraphRemoveNode() from AudioUnitHosting::SetTargetUnit()
which sets the new selected AU in the graph.
I was expecting to see a subsequent call to DoCleanup()
(kAudioUnitUninitializeSelect) from AUGraphRemoveNode(), but there
isn't. For testing I was using the SampleEffect and AudioUnitHosting
examples.
I remember someone mentioning that AudioUnitHosting doesn't clean up
at
all, but I think that it's another issue.
Am I missing something ?
Sounds like you are using a pretty old AU SDK. I remember an error a
few
revs back where AUBase::Predestructor() didn't get called on
kComponentCloseSelect, but it should with more recent SDKs, and doing
so
will cause Cleanup() to be called if the AU is still Initialized.
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.
_______________________________________________
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.