Partilhar via


RawAudioBuffer Class

  • java.lang.Object
    • java.lang.AutoCloseable
      • com.azure.android.communication.calling.RawAudioBuffer

public class RawAudioBuffer

An entity that represents an audio buffer that provides a wrapper native buffers and additional information

Constructor Summary

Constructor Description
RawAudioBuffer()

Default constructor

Method Summary

Modifier and Type Method and Description
void close()

Dispose method for cleaning up resources

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

java.nio.ByteBuffer getBuffer()

Native Buffer used to send/receive Audio. Use ByteBuffer.allocateDirect API when creating the ByteBuffer

long getTimestampInTicks()

Timestamp of Buffer to set/get depending on outgoing/incoming

RawAudioBuffer setBuffer(java.nio.ByteBuffer value)

Native Buffer used to send/receive Audio. Use ByteBuffer.allocateDirect API when creating the ByteBuffer

RawAudioBuffer setTimestampInTicks(long value)

Timestamp of Buffer to set/get depending on outgoing/incoming

Constructor Details

RawAudioBuffer

public RawAudioBuffer()

Default constructor

Method Details

close

public void close()

Dispose method for cleaning up resources

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.

getBuffer

public java.nio.ByteBuffer getBuffer()

Native Buffer used to send/receive Audio. Use ByteBuffer.allocateDirect API when creating the ByteBuffer

getTimestampInTicks

public long getTimestampInTicks()

Timestamp of Buffer to set/get depending on outgoing/incoming

setBuffer

public RawAudioBuffer setBuffer(java.nio.ByteBuffer value)

Native Buffer used to send/receive Audio. Use ByteBuffer.allocateDirect API when creating the ByteBuffer

Parameters:

value - The new value.

setTimestampInTicks

public RawAudioBuffer setTimestampInTicks(long value)

Timestamp of Buffer to set/get depending on outgoing/incoming

Parameters:

value - The new value.

Applies to