write

fun write(audioDataSource: AudioSource)

Writes the audio data from an AudioSource to a file in the specified format.

Parameters

audioDataSource

The buffer containing the raw audio samples and format info.

Throws

if the format cannot be encoded.

if a filesystem-level error occurs.