Class RawAudioBuffer
- Object
-
- 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 resourcesprotected 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/incomingRawAudioBuffer
setBuffer(ByteBuffer value)
Native Buffer used to send/receive Audio.RawAudioBuffer
setTimestampInTicks(long value)
Timestamp of Buffer to set/get depending on outgoing/incoming
-
-
-
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 classObject
-
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 interfaceAutoCloseable
-
-