Package 

Interface AudioBufferCallback

    • Method Summary

      Modifier and Type Method Description
      abstract Long onBuffer(ByteBuffer buffer, Integer audioFormat, Integer channelCount, Integer sampleRate, Integer bytesRead, Long captureTimeNs) Called when new audio samples are ready.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onBuffer

         abstract Long onBuffer(ByteBuffer buffer, Integer audioFormat, Integer channelCount, Integer sampleRate, Integer bytesRead, Long captureTimeNs)

        Called when new audio samples are ready.

        Parameters:
        buffer - the buffer of audio bytes.
        audioFormat - the audio encoding.
        bytesRead - the byte count originally read from the microphone.
        captureTimeNs - the capture timestamp of the original audio data in nanoseconds.