-
Notifications
You must be signed in to change notification settings - Fork 261
Closed
Description
i have a question on android.
i read the document that streaming feature support pcm16bits.
but it seems that android code library code use read(byte[], int, int) method.
@Throws(Exception::class)
fun read(): ByteArray {
val buffer = ByteArray(bufferSize)
val resultBytes = reader.read(buffer, 0, buffer.size)
if (resultBytes < 0) {
throw Exception(getReadFailureReason(resultBytes))
}
if (resultBytes > 0) {
// Update amplitude
amplitude = getAmplitude(buffer, resultBytes)
}
return buffer
}
but it seems this method's format should be ENCODING_PCM_8BIT on android document.
is it really pcm 16bits data streamed?
Metadata
Metadata
Assignees
Labels
No labels