I am writing a mediaplayer app for private use in Delphi XE10 for Android. I would like to use the android equalizer but don't know really how. The JEqualizer interface is exposed in Androidapi.JNI.Media (as are other soundfx functions). I have two specific problems:
1.) I am not very advanced in creating delphi objects from android interfaces. Am right just to do the following:
var
equ : jequalizer;
begin
equ := tjequalizer.wrap((sharedactivitycontext.getsystemservice(tjcontext.JavaClass.AUDIO_SERVICE) as ILocalObject).getobjectid);
2.) To create the equalizer I need the audiosession of the mediaplayer, which is not exposed in the Delphi mediaplayer object. Any idea how I could get that?