public class AudioFrame
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.nio.ByteBuffer |
buffer |
int |
bytesPerSample |
int |
channelNums |
int |
sampleRataHz |
int |
samplesPerChannel |
long |
timestamp |
Constructor and Description |
---|
AudioFrame(java.nio.ByteBuffer buffer,
int sampleRataHz,
int bytesPerSample,
int channelNums,
int samplesPerChannel,
long timestamp) |
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
getByteBuffer() |
int |
getBytesPerSample() |
int |
getChannelNums() |
int |
getSampleRataHz() |
int |
getSamplesPerChannel() |
long |
getTimestamp() |
java.lang.String |
toString() |
public java.nio.ByteBuffer buffer
public int sampleRataHz
public int bytesPerSample
public int channelNums
public int samplesPerChannel
public long timestamp
public AudioFrame(java.nio.ByteBuffer buffer, int sampleRataHz, int bytesPerSample, int channelNums, int samplesPerChannel, long timestamp)
public java.nio.ByteBuffer getByteBuffer()
public int getBytesPerSample()
public int getChannelNums()
public int getSampleRataHz()
public int getSamplesPerChannel()
public long getTimestamp()
public java.lang.String toString()
toString
in class java.lang.Object