//clika-runtime/io.clika.runtime/AudioInfo
AudioInfo
[common]
data class AudioInfo(val sampleRate: Int, val channels: Int, val frames: Long)
An audio stream's effective layout, read from its header. With a non-zero target rate or channel count the figures are what a decode to that target produces; frames is exactly the count Io.loadAudio with the same targets returns (seconds = frames / sampleRate).
Constructors
| AudioInfo | [common] constructor(sampleRate: Int, channels: Int, frames: Long) |
Properties
| Name | Summary |
|---|---|
| channels | [common] val channels: Int |
| frames | [common] val frames: Long |
| sampleRate | [common] val sampleRate: Int |