logo

Trait bevy::audio::Decodable[]

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

The decoder that can decode the implemeting type

A single value given by the decoder

Required methods

Build and return a Self::Decoder for the implementing type

Implementors