Struct amethyst_audio::AudioSystem [−][src]
pub struct AudioSystem;
Syncs 3D transform data with the audio engine to provide 3D audio.
Methods
impl AudioSystem[src]
impl AudioSystempub fn new() -> AudioSystem[src]
pub fn new() -> AudioSystemProduces a new AudioSystem that uses the given listener.
Trait Implementations
impl Default for AudioSystem[src]
impl Default for AudioSystemfn default() -> AudioSystem[src]
fn default() -> AudioSystemReturns the "default value" for a type. Read more
impl<'a> System<'a> for AudioSystem[src]
impl<'a> System<'a> for AudioSystemtype SystemData = (Option<Read<'a, SelectedListener>>, Entities<'a>, ReadStorage<'a, GlobalTransform>, ReadStorage<'a, AudioListener>, WriteStorage<'a, AudioEmitter>)
The resource bundle required to execute this system. Read more
fn run(
&mut self,
(select_listener, entities, transform, listener, audio_emitter): Self::SystemData
)[src]
fn run(
&mut self,
(select_listener, entities, transform, listener, audio_emitter): Self::SystemData
)Executes the system with the required system data. Read more
fn running_time(&self) -> RunningTime
fn running_time(&self) -> RunningTimeReturns a hint how long the system needs for running. This is used to optimize the way they're executed (might allow more parallelization). Read more
fn accessor(&'b self) -> AccessorCow<'a, 'b, Self>
fn accessor(&'b self) -> AccessorCow<'a, 'b, Self>Return the accessor from the [SystemData].
fn setup(&mut self, res: &mut Resources)
fn setup(&mut self, res: &mut Resources)Sets up the Resources using Self::SystemData::setup.
Auto Trait Implementations
impl Send for AudioSystem
impl Send for AudioSystemimpl Sync for AudioSystem
impl Sync for AudioSystem