//clika-runtime/io.clika.runtime/Io/peekAudio
peekAudio
[common]
fun peekAudio(path: String, targetSampleRate: Int = 0, targetChannels: Int = 0): AudioInfo
Read an audio header from a file. targetSampleRate and targetChannels of 0 report the file's own values; a non-zero value reports the effective figures after the resample or downmix a decode applies.
[common]
fun peekAudio(bytes: ByteArray, targetSampleRate: Int = 0, targetChannels: Int = 0): AudioInfo
Read an audio header from an encoded payload in memory; the same targets as the file form.