JavaAudioDeviceModule

tee3.webrtc.audio

## 类 JavaAudioDeviceModule

- java.lang.Object
- - tee3.webrtc.audio.JavaAudioDeviceModule

- 所有已实现的接口:
    AudioDeviceModule

      public class JavaAudioDeviceModule
      extends java.lang.Object
      implements AudioDeviceModule

  AudioDeviceModule implemented using android.media.AudioRecord as input and android.media.AudioTrack as output.

- - ### 嵌套类概要

    嵌套类
    限定符和类型 | 类和说明
    --- | ---
    `static interface` | `JavaAudioDeviceModule.AudioRecordErrorCallback`
    `static class` | `JavaAudioDeviceModule.AudioRecordStartErrorCode`
    `static class` | `JavaAudioDeviceModule.AudioSamples` Contains audio sample information.
    `static interface` | `JavaAudioDeviceModule.AudioTrackErrorCallback`
    `static class` | `JavaAudioDeviceModule.AudioTrackStartErrorCode`
    `static class` | `JavaAudioDeviceModule.Builder`
    `static interface` | `JavaAudioDeviceModule.SamplesReadyCallback` Called when new audio samples are ready.

  - ### 方法概要

    所有方法 静态方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `static JavaAudioDeviceModule.Builder` | `builder(android.content.Context context)`
    `long` | `getNativeAudioDeviceModulePointer()` Returns a C++ pointer to a webrtc::AudioDeviceModule.
    `static boolean` | `isBuiltInAcousticEchoCancelerSupported()` Returns true if the device supports built-in HW AEC, and the UUID is approved (some UUIDs can be excluded).
    `static boolean` | `isBuiltInNoiseSuppressorSupported()` Returns true if the device supports built-in HW NS, and the UUID is approved (some UUIDs can be excluded).
    `void` | `release()` Release resources for this AudioDeviceModule, including native resources.
    `void` | `setMicrophoneMute(boolean mute)` Control muting/unmuting the microphone.
    `void` | `setSpeakerMute(boolean mute)` Control muting/unmuting the speaker.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 方法详细资料

    - #### builder

          public static JavaAudioDeviceModule.Builder builder(android.content.Context context)

    - #### isBuiltInAcousticEchoCancelerSupported

          public static boolean isBuiltInAcousticEchoCancelerSupported()

      Returns true if the device supports built-in HW AEC, and the UUID is approved (some UUIDs can be excluded).

    - #### isBuiltInNoiseSuppressorSupported

          public static boolean isBuiltInNoiseSuppressorSupported()

      Returns true if the device supports built-in HW NS, and the UUID is approved (some UUIDs can be excluded).

    - #### getNativeAudioDeviceModulePointer

          public long getNativeAudioDeviceModulePointer()

      从接口复制的说明: `AudioDeviceModule`
      Returns a C++ pointer to a webrtc::AudioDeviceModule. Caller does _not_ take ownership and lifetime is handled through the release() call.
      指定者:
        `getNativeAudioDeviceModulePointer` 在接口中 `AudioDeviceModule`

    - #### release

          public void release()

      从接口复制的说明: `AudioDeviceModule`
      Release resources for this AudioDeviceModule, including native resources. The object should not be used after this call.
      指定者:
        `release` 在接口中 `AudioDeviceModule`

    - #### setSpeakerMute

          public void setSpeakerMute(boolean mute)

      从接口复制的说明: `AudioDeviceModule`
      Control muting/unmuting the speaker.
      指定者:
        `setSpeakerMute` 在接口中 `AudioDeviceModule`

    - #### setMicrophoneMute

          public void setMicrophoneMute(boolean mute)

      从接口复制的说明: `AudioDeviceModule`
      Control muting/unmuting the microphone.
      指定者:
        `setMicrophoneMute` 在接口中 `AudioDeviceModule`