pub trait Decodable: 'static + Send + Sync {
type Decoder: Source + Send + Sync + Iterator
where
<Self::Decoder as Iterator>::Item == Self::DecoderItem;
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
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
Build and return a Self::Decoder
for the implementing type