SinkLayout

class SinkLayout(val inputBytes: Int, val outputBytes: Int, val channels: Int, val rateHz: Int, val counterRateHz: Int)

How Media3's PCM maps onto what the output wants. Media3 hands over little-endian PCM in 1, 2, 3 or 4 bytes per sample. The output wants the layout of its dev.usbdac.WriteFormat: the same, or a wider slot with the sample left-justified (24 bits in a 4-byte slot is the sample shifted left by 8).

Constructors

Link copied to clipboard
constructor(inputBytes: Int, outputBytes: Int, channels: Int, rateHz: Int, counterRateHz: Int)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rateHz: Int