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 AudioSystem
pub fn new() -> AudioSystem
[src]
pub fn new() -> AudioSystem
Produces a new AudioSystem that uses the given listener.
Trait Implementations
impl Default for AudioSystem
[src]
impl Default for AudioSystem
fn default() -> AudioSystem
[src]
fn default() -> AudioSystem
Returns the "default value" for a type. Read more
impl<'a> System<'a> for AudioSystem
[src]
impl<'a> System<'a> for AudioSystem
type 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) -> RunningTime
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
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 AudioSystem
impl Sync for AudioSystem
impl Sync for AudioSystem