示例#1
0
//-------------------------------------------------------------------------------------------------------
VstIntPtr AudioEffect::dispatchEffectClass (AEffect* e, VstInt32 opCode, VstInt32 index, VstIntPtr value, void* ptr, float opt)
{
	AudioEffect* ae = (AudioEffect*)(e->object);

	if (opCode == effClose)
	{
		ae->dispatcher (opCode, index, value, ptr, opt);
		delete ae;
		return 1;
	}

	return ae->dispatcher (opCode, index, value, ptr, opt);
}
示例#2
0
//-----------------------------------------------------------------------------
long dispatchEffectClass(AEffect * e, long opCode,
                         long index, long value, void *ptr, float opt)
{
   AudioEffect *ae = (AudioEffect *) (e->object);

   if (opCode == effClose) {
      ae->dispatcher(opCode, index, value, ptr, opt);
      delete ae;
      return 1;
   }

   return ae->dispatcher(opCode, index, value, ptr, opt);
}