-
public interface AudioBufferCallback
-
-
Method Summary
-
-
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.
-
-
-
-