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]
impl<'a, F, R> AudioBundle<'a, F, R>pub fn new(picker: F) -> Self[src]
pub fn new(picker: F) -> SelfCreate a new DJ bundle
pub fn with_dep(self, dep: &'a [&'a str]) -> Self[src]
pub fn with_dep(self, dep: &'a [&'a str]) -> SelfSet 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]
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, Auto Trait Implementations
impl<'a, F, R> Send for AudioBundle<'a, F, R> where
F: Send,
R: Send,
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,
impl<'a, F, R> Sync for AudioBundle<'a, F, R> where
F: Sync,
R: Sync,