AudioFormat

data class AudioFormat(    val sampleRateHz: Int,     val bitsPerSample: Int,     val numChannels: Int)

Describe format of PCM audio

Parameters

sampleRateHz

the sample rate expressed in Hertz

bitsPerSample

the number of bit per sample

numChannels

the number of channels. mono : 1, stereo : 2

Constructors

Link copied to clipboard
fun AudioFormat(    sampleRateHz: Int,     bitsPerSample: Int,     numChannels: Int)

Functions

Link copied to clipboard
fun getBytesPerMillis(): Int

Utility function to convert time(ms) to size

Link copied to clipboard
fun getBytesPerSample(): Int

Properties

Link copied to clipboard
val bitsPerSample: Int
Link copied to clipboard
val numChannels: Int
Link copied to clipboard
val sampleRateHz: Int