Struct amethyst_audio::AudioSystem
[−]
[src]
pub struct AudioSystem;
Syncs 3D transform data with the audio engine to provide 3D audio.
Methods
impl AudioSystem
[src]
fn new() -> AudioSystem
[src]
Produces a new AudioSystem that uses the given listener.
Trait Implementations
impl Default for AudioSystem
[src]
fn default() -> AudioSystem
[src]
Returns the "default value" for a type. Read more
impl<'a> System<'a> for AudioSystem
[src]
type SystemData = (Fetch<'a, SelectedListener>, ReadStorage<'a, TransformComponent>, ReadStorage<'a, AudioListener>, WriteStorage<'a, AudioEmitter>)
The resource bundle required to execute this system. Read more
fn run(
&mut self,
(select_listener, transform, listener, audio_emitter): Self::SystemData
)
[src]
&mut self,
(select_listener, transform, listener, audio_emitter): Self::SystemData
)
Executes the system with the required system data. Read more
fn running_time(&self) -> RunningTime
[src]
Returns 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