Package io.agora.base

Class AudioFrame

java.lang.Object
io.agora.base.AudioFrame

public class AudioFrame extends Object
  • Field Details

    • buffer

      public ByteBuffer buffer
    • sampleRataHz

      public int sampleRataHz
    • bytesPerSample

      public int bytesPerSample
    • channelNums

      public int channelNums
    • samplesPerChannel

      public int samplesPerChannel
    • timestamp

      public long timestamp
  • Constructor Details

    • AudioFrame

      public AudioFrame(ByteBuffer buffer, int sampleRataHz, int bytesPerSample, int channelNums, int samplesPerChannel, long timestamp)
  • Method Details

    • getByteBuffer

      public ByteBuffer getByteBuffer()
    • getBytesPerSample

      public int getBytesPerSample()
    • getChannelNums

      public int getChannelNums()
    • getSampleRataHz

      public int getSampleRataHz()
    • getSamplesPerChannel

      public int getSamplesPerChannel()
    • getTimestamp

      public long getTimestamp()
    • toString

      public String toString()
      Overrides:
      toString in class Object