Enum kira::sound::error::SoundFromFileError[][src]

pub enum SoundFromFileError {
    UnsupportedChannelConfiguration,
    UnsupportedAudioFileFormat,
    IoError(Error),
    Mp3Error(Error),
    VariableMp3SampleRate,
    UnknownMp3SampleRate,
    OggError(VorbisError),
    FlacError(Error),
    WavError(Error),
}

Something that can go wrong when loading a sound from a file.

Variants

UnsupportedChannelConfiguration

The sound has more than two channels.

UnsupportedAudioFileFormat

The sound is in an unsupported file format.

IoError(Error)

An error occurred when interacting with the filesystem.

Mp3Error(Error)

An error occurred when reading an mp3 file.

VariableMp3SampleRate

The mp3 file has multiple sample rates.

UnknownMp3SampleRate

The sample rate of the mp3 could not be determined.

OggError(VorbisError)

An error occurred when reading an ogg file.

FlacError(Error)

An error occurred when reading a flac file.

WavError(Error)

An error occurred when reading a wav file.

Trait Implementations

impl Debug for SoundFromFileError[src]

impl Display for SoundFromFileError[src]

impl Error for SoundFromFileError[src]

impl From<Error> for SoundFromFileError[src]

impl From<Error> for SoundFromFileError[src]

impl From<Error> for SoundFromFileError[src]

impl From<Error> for SoundFromFileError[src]

impl From<SoundFromFileError> for LoadSoundError[src]

impl From<VorbisError> for SoundFromFileError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,