Package tvi.webrtc.audio
Class LegacyAudioDeviceModule
java.lang.Object
tvi.webrtc.audio.LegacyAudioDeviceModule
- All Implemented Interfaces:
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.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
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.
-
Constructor Details
-
LegacyAudioDeviceModule
public LegacyAudioDeviceModule()Deprecated.
-
-
Method Details
-
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 interfaceAudioDeviceModule
-
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 interfaceAudioDeviceModule
-
setSpeakerMute
public void setSpeakerMute(boolean mute) Deprecated.Description copied from interface:AudioDeviceModule
Control muting/unmuting the speaker.- Specified by:
setSpeakerMute
in interfaceAudioDeviceModule
-
setMicrophoneMute
public void setMicrophoneMute(boolean mute) Deprecated.Description copied from interface:AudioDeviceModule
Control muting/unmuting the microphone.- Specified by:
setMicrophoneMute
in interfaceAudioDeviceModule
-