AudioFrameFormat

data class AudioFrameFormat(bitsPerSample: Int, sampleRateHz: Int, channelCount: Int)

Audio format information for a PCM buffer.

Parameters

bitsPerSample

The number of bits per sample. Currently only 16 is supported for custom tracks.

sampleRateHz

The number of samples per second, for example 48000.

channelCount

The number of channels -- 1 for mono, 2 for stereo.

Constructors

Link copied to clipboard
fun AudioFrameFormat(bitsPerSample: Int, sampleRateHz: Int, channelCount: Int)

Properties

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