Hi,
I have playing around with effects a little bit and came across few problems. I will appreciate if someone can point me in the right direction.
Application: My current application creates a custom effect derived from CXAPOBase and CXAPOParametersBase classes. And I have a chain of 3 such effects attached to a submix voice. The first effects takes 1 channel as input and outputs 2 channel. The other two effects has 2 input channels and 2 output channels. Now I want to be able to enable and disable this effect to show how different effects modify the input audio. Below are the issues I am facing.
1) Even if I set the InitialState of the descriptor to false. The effect still gets applied.
descriptor[0].InitialState = false;
descriptor[1].InitialState = false;
XAUDIO2_EFFECT_CHAIN eChain;
eChain.EffectCount = 2;
eChain.pEffectDescriptors = descriptor;
In my case, i am basically taking a 1 input stream and panning it. So even if I set the initial state to false. I can still hear the panning as I move the sound source.
2) EnableEffect() and DisableEffect() are not working. I am not sure if it related to the above problem. But when I try to DisableEffect(i) on the SubmixVoice I have the effects attached to, it does nothing.
Thanks,
Anish