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]

Create a new DJ bundle

Set dependencies for the DjSystem

Trait Implementations

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

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

Auto Trait Implementations

impl<'a, F, R> Send for AudioBundle<'a, F, R> where
    F: Send,
    R: Send

impl<'a, F, R> Sync for AudioBundle<'a, F, R> where
    F: Sync,
    R: Sync