Class LegacyAudioDeviceModule

  • All Implemented Interfaces:
    AudioDeviceModule

    @Deprecated
    public class LegacyAudioDeviceModule
    extends java.lang.Object
    implements AudioDeviceModule
    Deprecated.
    This class represents the legacy AudioDeviceModule that is currently hardcoded into C++ WebRTC. It will return a null native AudioDeviceModule pointer, leading to an internal object being created inside WebRTC that is controlled by static calls to the classes under the voiceengine package. Please use the new JavaAudioDeviceModule instead of this class.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      long getNativeAudioDeviceModulePointer()
      Deprecated.
      Returns a C++ pointer to a webrtc::AudioDeviceModule.
      void release()
      Deprecated.
      Release resources for this AudioDeviceModule, including native resources.
      void setMicrophoneMute​(boolean mute)
      Deprecated.
      Control muting/unmuting the microphone.
      void setSpeakerMute​(boolean mute)
      Deprecated.
      Control muting/unmuting the speaker.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LegacyAudioDeviceModule

        public LegacyAudioDeviceModule()
        Deprecated.
    • Method Detail

      • getNativeAudioDeviceModulePointer

        public long getNativeAudioDeviceModulePointer()
        Deprecated.
        Description copied from interface: AudioDeviceModule
        Returns a C++ pointer to a webrtc::AudioDeviceModule. Caller does _not_ take ownership and lifetime is handled through the release() call.
        Specified by:
        getNativeAudioDeviceModulePointer in interface AudioDeviceModule
      • release

        public void release()
        Deprecated.
        Description copied from interface: AudioDeviceModule
        Release resources for this AudioDeviceModule, including native resources. The object should not be used after this call.
        Specified by:
        release in interface AudioDeviceModule