pub trait Decodable: 'static + Send + Sync {
type Decoder: Source<Item = Self::DecoderItem> + Send + Iterator;
type DecoderItem: Sample + Send + Sync;
fn decoder(&self) -> Self::Decoder;
}
Expand description
A type implementing this trait can be decoded as a rodio source
Required Associated Types§
type Decoder: Source<Item = Self::DecoderItem> + Send + Iterator
type Decoder: Source<Item = Self::DecoderItem> + Send + Iterator
The decoder that can decode the implementing type
type DecoderItem: Sample + Send + Sync
type DecoderItem: Sample + Send + Sync
A single value given by the decoder
Required Methods§
fn decoder(&self) -> Self::Decoder
fn decoder(&self) -> Self::Decoder
Build and return a Self::Decoder
for the implementing type