AudioFileWriter

actual constructor(filePath: String, format: AudioFileFormat, sampleRate: Int, channelCount: Int, tags: AudioFileTags?)

Creates a new audio file at filePath.

Parameters

filePath

Absolute path for the output file. Parent directories must already exist.

format

The audio container/codec format to use.

sampleRate

The sample rate in Hz (e.g. 44100, 48000).

channelCount

The number of audio channels (1 = mono, 2 = stereo).

tags

Optional metadata tags to embed in the file. Pass null (the default) to omit metadata.

actual constructor(filePath: String, format: AudioFileFormat, sampleRate: Int, channelCount: Int, tags: AudioFileTags?)

Creates a new audio file at filePath.

Parameters

filePath

Absolute path for the output file. Parent directories must already exist.

format

The audio container/codec format to use.

sampleRate

The sample rate in Hz (e.g. 44100, 48000).

channelCount

The number of audio channels (1 = mono, 2 = stereo).

tags

Optional metadata tags to embed in the file. Pass null (the default) to omit metadata.

expect constructor(filePath: String, format: AudioFileFormat, sampleRate: Int, channelCount: Int, tags: AudioFileTags? = null)

Creates a new audio file at filePath.

Parameters

filePath

Absolute path for the output file. Parent directories must already exist.

format

The audio container/codec format to use.

sampleRate

The sample rate in Hz (e.g. 44100, 48000).

channelCount

The number of audio channels (1 = mono, 2 = stereo).

tags

Optional metadata tags to embed in the file. Pass null (the default) to omit metadata.

actual constructor(filePath: String, format: AudioFileFormat, sampleRate: Int, channelCount: Int, tags: AudioFileTags?)

Creates a new audio file at filePath.

Parameters

filePath

Absolute path for the output file. Parent directories must already exist.

format

The audio container/codec format to use.

sampleRate

The sample rate in Hz (e.g. 44100, 48000).

channelCount

The number of audio channels (1 = mono, 2 = stereo).

tags

Optional metadata tags to embed in the file. Pass null (the default) to omit metadata.

actual constructor(filePath: String, format: AudioFileFormat, sampleRate: Int, channelCount: Int, tags: AudioFileTags?)

Creates a new audio file at filePath.

Parameters

filePath

Absolute path for the output file. Parent directories must already exist.

format

The audio container/codec format to use.

sampleRate

The sample rate in Hz (e.g. 44100, 48000).

channelCount

The number of audio channels (1 = mono, 2 = stereo).

tags

Optional metadata tags to embed in the file. Pass null (the default) to omit metadata.

actual constructor(filePath: String, format: AudioFileFormat, sampleRate: Int, channelCount: Int, tags: AudioFileTags?)

Creates a new audio file at filePath.

Parameters

filePath

Absolute path for the output file. Parent directories must already exist.

format

The audio container/codec format to use.

sampleRate

The sample rate in Hz (e.g. 44100, 48000).

channelCount

The number of audio channels (1 = mono, 2 = stereo).

tags

Optional metadata tags to embed in the file. Pass null (the default) to omit metadata.

actual constructor(filePath: String, format: AudioFileFormat, sampleRate: Int, channelCount: Int, tags: AudioFileTags?)

Creates a new audio file at filePath.

Parameters

filePath

Absolute path for the output file. Parent directories must already exist.

format

The audio container/codec format to use.

sampleRate

The sample rate in Hz (e.g. 44100, 48000).

channelCount

The number of audio channels (1 = mono, 2 = stereo).

tags

Optional metadata tags to embed in the file. Pass null (the default) to omit metadata.

actual constructor(filePath: String, format: AudioFileFormat, sampleRate: Int, channelCount: Int, tags: AudioFileTags?)

Creates a new audio file at filePath.

Parameters

filePath

Absolute path for the output file. Parent directories must already exist.

format

The audio container/codec format to use.

sampleRate

The sample rate in Hz (e.g. 44100, 48000).

channelCount

The number of audio channels (1 = mono, 2 = stereo).

tags

Optional metadata tags to embed in the file. Pass null (the default) to omit metadata.