AudioSpec

data class AudioSpec(val sampleRate: Int, val channels: Int, val sampleFormat: SampleFormat, val channelLayoutMask: Long? = null)

A sample rate, a channel count and a sample format: the shape of one audio stream.

Constructors

Link copied to clipboard
constructor(sampleRate: Int, channels: Int, sampleFormat: SampleFormat, channelLayoutMask: Long? = null)

Properties

Link copied to clipboard

Which speaker each channel belongs to, as an FFmpeg channel mask. Null means FFmpeg's default layout for channels. Its channel count must equal channels.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard