//sorisdk/com.iplateia.afplib/AudioLevelCalculator/calculateLevel
calculateLevel
[androidJvm]
fun calculateLevel(buffer: ByteArray, readPoint: Int, leftOver: Int, bigEndian: Boolean = BIG_ENDIAN): Float
Calculates the normalized audio level (0.0 ~ 1.0) from the given buffer.
Return
Normalized audio level
Parameters
androidJvm
buffer | PCM audio data |
readPoint | Start index in buffer |
leftOver | Number of bytes to ignore at the end |
bigEndian | True if buffer is big-endian, false for little-endian (optional, default: BIG_ENDIAN) |