Trait bevy::audio::Decodable

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

The decoder that can decode the implementing type

A single value given by the decoder

Required Methods

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

Implementors