Enum rmus::decoders::Decoder [−][src]
pub enum Decoder {
Vorbis(VorbisDecoder),
Mp3(Mp3Decoder),
Flac(FlacDecoder),
}
Expand description
This is a type that iterates over all implemented decoders and automatically chooses the right one at runtime.
Variants
Vorbis(VorbisDecoder)
Tuple Fields of Vorbis
Mp3(Mp3Decoder)
Tuple Fields of Mp3
0: Mp3Decoder
Flac(FlacDecoder)
Tuple Fields of Flac
0: FlacDecoder
Implementations
Trait Implementations
Gets the next sample in the buffer. This has to be interleaved and, of course, buffered, so
the channels are in backwards order. This is because interleaved is probably faster than
iterating through Vec<VecDeque
Gets the total length of the stream in seconds.
Gets the sample rate.