Struct amethyst_audio::AudioEmitter [] [src]

pub struct AudioEmitter { /* fields omitted */ }

An audio source, add this component to anything that emits sound.

Methods

impl AudioEmitter
[src]

[src]

Creates a new AudioEmitter component initialized to the given positions. These positions will stay synced with Transform if the Transform component is available on this entity.

[src]

Plays an audio source from this emitter.

[src]

An emitter's picker will be called by the AudioSystem whenever the emitter runs out of sounds to play.

During callback the picker is separated from the emitter in order to avoid multiple aliasing. After the callback is complete, if the picker returned true then the picker that just finished will be reattached.

[src]

Clears the previously set picker.

Trait Implementations

impl Default for AudioEmitter
[src]

[src]

Returns the "default value" for a type. Read more

impl Component for AudioEmitter
[src]

Associated storage type for this component.