WavWriter

class WavWriter(audioData: ByteArray, sampleRate: Int, sampleSize: Int, channels: Int, audioDataByteOrder: ByteOrder = ByteOrder.BIG_ENDIAN)

Allows you to write wav files from audio data. Comes with a handy constructor for SoundAnnotations.

Constructors

Link copied to clipboard
constructor(audioData: ByteArray, sampleRate: Int, sampleSize: Int, channels: Int, audioDataByteOrder: ByteOrder = ByteOrder.BIG_ENDIAN)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun writeToStream(outputStream: OutputStream)

Writes the WAV data to output stream.