Android Question AcousticEchoCanceler with reflection

Discussion in 'Android Questions' started by KZero, Mar 14, 2015.

  1. KZero

    KZero Active Member Licensed User

    Hello,

    sorry for this, i fixed it

    the working code

    Code:
    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: Mar 14, 2015
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice