Re: Problems with AUEffectBase w/o Kernels
Re: Problems with AUEffectBase w/o Kernels
- Subject: Re: Problems with AUEffectBase w/o Kernels
- From: Marc Poirier <email@hidden>
- Date: Sun, 19 Jan 2003 18:06:49 +0100 (CET)
>
after giving some stuff adaption and a recompile to the new
>
AUEffectBase (Dec 02 Dev Tools), I suddenly encountered crashes during
>
Logic startup. However, it doesn't crash any othe host I tested it with.
>
>
I found that MaintainKernels() gets called allthough I havn't
>
implemented any Kernels. Hence it tries to access the KernelList which
>
isn't there.
>
>
Is there a way to circumvent this when the host tries to establish its
>
StreamFormat? Any new function I should overwrite or call?
Calling MaintainKernels should be fine because it should just do not much
of anything (well, creating a vector of null pointers) if no kernels are
being created, but there was a bug introduced in the Dec Tools update at
the end of the MaintainKernels function:
for(unsigned int i = 0; i < nChannels; i++ )
{
mKernelList[i]->SetLastKernel(i == nChannels-1 );
}
I changed that to be:
for(unsigned int i = 0; i < nChannels; i++ )
{
if (mKernelList[i] != NULL)
mKernelList[i]->SetLastKernel(i == nChannels-1 );
}
and that seems to me to be a fine solution; it allows kernel-using plugs
and non-kernel-using plugs to still work.
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.