pub trait Decodable: 'static + Send + Sync {
type Decoder: Source + Send + Sync + 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
Associated Types
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