WAV

open class WAV : AudioFormat

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
data class Chunk(val type: String, val data: AsyncStream)
Link copied to clipboard
object Companion : WAV
Link copied to clipboard
data class Fmt(var formatTag: Int = -1, var channels: Int = 2, var samplesPerSec: Int = 44100, var avgBytesPerSec: Long = 0, var blockAlign: Int = 0, var bitsPerSample: Int = 0)
Link copied to clipboard
data class ProcessedChunk(val type: String, val data: AsyncStream, val extra: Any)
Link copied to clipboard
class WavAudioStream(val fmt: WAV.Fmt, val buffer: AsyncStream, val bufferLength: Long, val data: AsyncStream, val props: AudioDecodingProps) : AudioStream

Properties

Link copied to clipboard
open val extensions: Set<String>
Link copied to clipboard
open val name: String

Functions

Link copied to clipboard
suspend fun decode(data: AsyncStream, props: AudioDecodingProps = AudioDecodingProps.DEFAULT): AudioData?
suspend fun decode(data: ByteArray, props: AudioDecodingProps = AudioDecodingProps.DEFAULT): AudioData?
Link copied to clipboard
suspend fun decodeStream(data: AsyncStream, props: AudioDecodingProps = AudioDecodingProps.DEFAULT): AudioStream?
Link copied to clipboard
Link copied to clipboard
open suspend override fun encode(data: AudioData, out: AsyncOutputStream, filename: String, props: AudioEncodingProps)
Link copied to clipboard
suspend fun encodeToByteArray(data: AudioData, filename: String = "out.wav", format: AudioFormat = this, props: AudioEncodingProps = AudioEncodingProps.DEFAULT): ByteArray
Link copied to clipboard
suspend fun parse(data: AsyncStream, handle: (WAV.ProcessedChunk) -> Unit): AudioFormat.Info
Link copied to clipboard
suspend fun riff(data: AsyncStream, handler: suspend WAV.Chunk.() -> Unit)
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open suspend override fun tryReadInfo(data: AsyncStream, props: AudioDecodingProps): AudioFormat.Info?