• 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: Problems with AUEffectBase w/o Kernels
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Problems with AUEffectBase w/o Kernels (From: Urs Heckmann <email@hidden>)

  • Prev by Date: Re: 10.1.5 Compatibility?
  • Next by Date: Re: MusicPlayerStop() and all-notes-off messages
  • Previous by thread: Problems with AUEffectBase w/o Kernels
  • Next by thread: Re: Problems with AUEffectBase w/o Kernels
  • Index(es):
    • Date
    • Thread