Hi,
I am using OpenSLES and noticed on my phone when querying the SLAndroidEffectCapabilitiesItf interface, that i have an effect: "Acoustic Echo Canceler" amongst others.
How do I go about using this (I cant find any relevant docs/examples)?
I assumed I needed to add the effect interface to a Audio Recorder object, but that fails.
I want access to the following:
* Is the effect currently enabled? (If so don't do echo cancellation in our own app)
* Ability to turn the effect on/off (On some devices our implementation may be better)
What I am trying now is:
* Query effect implementation interface id from SLAndroidEffectCapabilitiesItf
* Add SL_IID_ANDROIDEFFECT to Audio Recorder object
* Get SLAndroidEffectItf interface
* Call SLAndroidEffectItf::CreateEffect() with the effect_impl interface id obtained from SLAndroidEffectCapabilitiesItf
* Call SLAndroidEffectItf::SetEnabled()
As I said, I expect this effect to be available on the recorder as it modifies what the input audio from the mic sounds like but I cant do that it seems.
Can I somehow even do this in Java land and have it affect my OpenSL recorder?
Also, what is the difference between the Effect and the EffectSend interfaces?
Thanks,
Brendon.