Struct amethyst_audio::Source[][src]

pub struct Source {
    pub bytes: Vec<u8>,
}

A loaded audio file

Fields

The bytes of this audio source.

Trait Implementations

impl SimpleFormat<Audio> for WavFormat
[src]

NAME: &'static str = "WAV"

A unique identifier for this format.

Options specific to the format, which are passed to import. E.g. for textures this would be stuff like mipmap levels and sampler info. Read more

Produces asset data from given bytes.

impl SimpleFormat<Audio> for OggFormat
[src]

NAME: &'static str = "OGG"

A unique identifier for this format.

Options specific to the format, which are passed to import. E.g. for textures this would be stuff like mipmap levels and sampler info. Read more

Produces asset data from given bytes.

impl SimpleFormat<Audio> for FlacFormat
[src]

NAME: &'static str = "FLAC"

A unique identifier for this format.

Options specific to the format, which are passed to import. E.g. for textures this would be stuff like mipmap levels and sampler info. Read more

Produces asset data from given bytes.

impl SimpleFormat<Audio> for Mp3Format
[src]

NAME: &'static str = "MP3"

A unique identifier for this format.

Options specific to the format, which are passed to import. E.g. for textures this would be stuff like mipmap levels and sampler info. Read more

Produces asset data from given bytes.

impl SimpleFormat<Audio> for AudioFormat
[src]

NAME: &'static str = "AudioFormat"

A unique identifier for this format.

Options specific to the format, which are passed to import. E.g. for textures this would be stuff like mipmap levels and sampler info. Read more

Produces asset data from given bytes.

impl Clone for Source
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl AsRef<[u8]> for Source
[src]

Performs the conversion.

impl Asset for Source
[src]

NAME: &'static str = "audio::Source"

An identifier for this asset used for debugging.

The Data type the asset can be created from.

The ECS storage type to be used. You'll want to use VecStorage in most cases.

Auto Trait Implementations

impl Send for Source

impl Sync for Source