Android Question AcousticEchoCanceler with reflection

KZero

Active Member
Licensed User
Longtime User
Hello,

sorry for this, i fixed it

the working code

B4X:
Dim r As Reflector
  Dim a As AudioStreamer
  a.Initialize2(0,"aa",22050,True,16,a.VOLUME_VOICE_CALL )
  r.Target = a
  Dim ar As JavaObject
  ar = r.GetField("audioRecord")
  Dim id As Int = ar.RunMethod("getAudioSessionId", Null)
  Dim AEC As JavaObject
  AEC = AEC.InitializeStatic("android.media.audiofx.AcousticEchoCanceler")
  AEC = AEC.RunMethod("create", Array As Object(id))
 
Last edited:
Top