Struct amethyst::audio::AudioContext [] [src]

pub struct AudioContext { /* fields omitted */ }

A context for loading audio files

Methods

impl AudioContext
[src]

[src]

Creates a new audio context.

Trait Implementations

impl Context for AudioContext
[src]

The asset type this context can produce.

The Data type the asset can be created from.

The error that may be returned from create_asset.

The result type for loading an asset. This can also be a future (or anything that implements IntoFuture). Read more

[src]

A small keyword for which category these assets belongs to. Read more

[src]

Provides the conversion from the data format to the actual asset.

[src]

Updates an asset after it's been reloaded. Read more

[src]

Notifies about an asset load. This is can be used to cache the asset. To return a cached asset, see the retrieve function. Read more

[src]

Returns Some cached value if possible, otherwise None. Read more

[src]

Gives a hint that several assets may have been released recently. Read more

[src]

Request for clearing the whole cache.