Hi,
I want to use LoudnessEnhancer effect with VOIP call using Open-SLES.
My question is if there's some other option to use it, instead of direct SLES API?
Since the effect is applied on audio session of MediaPlayer/AudioTrack, I would think that it could be used differently.
For example:
Let's assume I have a method which gives the application (the APK who hosts OpenSLES logic) the audio session Id (it could be fetched by adding a code to AudioFlinger::getParameters).
Now we could use it in the standard way:
int sessionId = GetSessionId();
LoudnessEnhancer mLoudness = new LoudnessEnhancer(sessionId);
mLoudness.setEnabled(true);
mLoudness.setTargetGain(someTargetGain);
With this approach I see the effect is working but does nothing.
I see that "leftSample"/"rightSample" in "LE_process" (in EffectLoudnessEnhancer.cpp) are zero.
Do you have an idea how to make it working?
Thanks.
Naaman