io.agora.rtc

## Class AgoraAudioSink

- java.lang.Object
- - io.agora.rtc.AgoraAudioSink

-     public class AgoraAudioSink
      extends java.lang.Object

  Represents an audio sink used to consume audio data from an Agora track.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `private long` | `cptr` Native pointer to the underlying audio sink instance.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AgoraAudioSink()` Creates an audio sink and initializes the native resources.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `destroy()` Destroys the audio sink and frees its native resources.
    `private long` | `init()` Initializes the native audio sink instance.
    `private void` | `ndestroy()` Releases the native audio sink resources.

    - ### Methods inherited from class java.lang.Object

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

- - ### Field Detail

    - #### cptr

          private long cptr

      Native pointer to the underlying audio sink instance.

  - ### Constructor Detail

    - #### AgoraAudioSink

          public AgoraAudioSink()

      Creates an audio sink and initializes the native resources.

  - ### Method Detail

    - #### init

          private long init()

      Initializes the native audio sink instance.
      Returns:
        Native pointer to the audio sink

    - #### ndestroy

          private void ndestroy()

      Releases the native audio sink resources.

    - #### destroy

          public void destroy()

      Destroys the audio sink and frees its native resources.