Class RawAudioBuffer

  • All Implemented Interfaces:
    AutoCloseable

    public final class RawAudioBuffer
    extends Object
    implements AutoCloseable
    An entity that represents an audio buffer that provides a wrapper native buffers and additional information
    • Constructor Summary

      Constructors 
      Constructor Description
      RawAudioBuffer()
      Default constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Dispose method for cleaning up resources
      protected void finalize()
      Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
      ByteBuffer getBuffer()
      Native Buffer used to send/receive Audio.
      long getTimestampInTicks()
      Timestamp of Buffer to set/get depending on outgoing/incoming
      RawAudioBuffer setBuffer​(ByteBuffer value)
      Native Buffer used to send/receive Audio.
      RawAudioBuffer setTimestampInTicks​(long value)
      Timestamp of Buffer to set/get depending on outgoing/incoming
      • Methods inherited from class Object

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

      • RawAudioBuffer

        public RawAudioBuffer()
        Default constructor
    • Method Detail

      • finalize

        protected void finalize()
        Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
        Overrides:
        finalize in class Object
      • getBuffer

        public ByteBuffer getBuffer()
        Native Buffer used to send/receive Audio. Use ByteBuffer.allocateDirect API when creating the ByteBuffer
      • setBuffer

        public RawAudioBuffer setBuffer​(ByteBuffer value)
        Native Buffer used to send/receive Audio. Use ByteBuffer.allocateDirect API when creating the ByteBuffer
        Parameters:
        value - The new value.
      • getTimestampInTicks

        public long getTimestampInTicks()
        Timestamp of Buffer to set/get depending on outgoing/incoming
      • setTimestampInTicks

        public RawAudioBuffer setTimestampInTicks​(long value)
        Timestamp of Buffer to set/get depending on outgoing/incoming
        Parameters:
        value - The new value.
      • close

        public void close()
        Dispose method for cleaning up resources
        Specified by:
        close in interface AutoCloseable