#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("An error occured while decoding an audio file: {0}")]
DecoderError(#[from] rodio::decoder::DecoderError),
#[error("An error occured while creating a synthesizer: {0}")]
SynthesizerError(#[from] rustysynth::SynthesizerError),
#[error("An error occured while playing a midi track: {0}")]
MidiError(#[from] rustysynth::MidiFileError),
#[error("An error occured while playing a track: {0}")]
PlayError(#[from] rodio::PlayError),
#[error("An error occured while reading a file from the filesystem: {0}")]
FileSystem(#[from] luminol_filesystem::Error),
}
pub use color_eyre::Result;