You can create custom effect from a function with EffectCallback. It's better to create your own IAudioEffect derivative though.
You can create custom effect from a function with EffectCallback.
Inherit from IEffect to make a custom effect.
Effect callback info.
IAudioEffect API.