Struct amethyst_audio::AudioBundle [] [src]

pub struct AudioBundle<'a, F, R> { /* fields omitted */ }

Audio bundle

Will only register the AudioSink and the DjSystem if an audio output is found. DjSystem will be registered with name "dj_system".

This will also add the asset processor for Source.

Errors

No errors returned by this bundle

Panics

Panics during DjSystem registration if the bundle is applied twice.

Methods

impl<'a, F, R> AudioBundle<'a, F, R>
[src]

[src]

Create a new DJ bundle

[src]

Set dependencies for the DjSystem

Trait Implementations

impl<'a, 'b, 'c, F, R> ECSBundle<'a, 'b> for AudioBundle<'c, F, R> where
    F: FnMut(&mut R) -> Option<SourceHandle> + Send + 'static,
    R: Send + Sync + 'static, 
[src]

[src]

Build and add ECS resources, register components, add systems etc to the Application.