AudioFileReadError

Defines potential errors that can occur during the file reading process.

Inheritors

Types

Link copied to clipboard
class InvalidFile(message: String, cause: Throwable? = null) : AudioFileReadError

The data does not represent a valid audio file (e.g. missing RIFF/WAVE header, corrupt structure).

Link copied to clipboard

Wraps a lower-level I/O exception that occurred while reading from the file system.

Link copied to clipboard
class UnsupportedFormat(message: String, cause: Throwable? = null) : AudioFileReadError

The audio file uses a format or encoding that Kodio does not support (e.g. compressed ADPCM, unsupported bit depth).

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
expect open val message: String?