AudioFileFormat

Supported audio file formats for reading and writing.

Each entry is available on at least one platform. Unsupported combinations throw UnsupportedFormatException.

Read: WAV and MP3 on Android, iOS/macOS/tvOS, JVM, and native desktop. AAC and M4A on Android and iOS/macOS/tvOS. JS reads from an in-memory store after decodeAudioFile / putWavBytes / putAudioFile (or a previous AudioFileWriter). watchOS has no AudioFileReader.

Write: WAV on every platform (JS is in-memory). AAC and M4A on Android and iOS/macOS/tvOS. MP3 encode throws on every platform.

See also

Entries

Link copied to clipboard

Waveform Audio File Format (uncompressed PCM).

Link copied to clipboard

MPEG Audio Layer III (lossy compressed).

Link copied to clipboard

Advanced Audio Coding (lossy compressed).

Link copied to clipboard

MPEG-4 audio container, typically containing AAC-encoded data.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.