Type Alias bevy_audio::PitchBundle

source ·
pub type PitchBundle = AudioSourceBundle<Pitch>;
Expand description

Bundle for playing a bevy note sound

Aliased Type§

struct PitchBundle {
    pub source: Handle<Pitch>,
    pub settings: PlaybackSettings,
}

Fields§

§source: Handle<Pitch>

Asset containing the audio data to play.

§settings: PlaybackSettings

Initial settings that the audio starts playing with. If you would like to control the audio while it is playing, query for the AudioSink component. Changes to this component will not be applied to already-playing audio.

Trait Implementations

source§

impl<Source> Bundle for AudioSourceBundle<Source>
where Source: Asset + Decodable,

source§

fn get_component_ids( components: &Components, ids: &mut impl FnMut(Option<ComponentId>) )

Gets this Bundle’s component ids. This will be None if the component has not been registered.
source§

impl<T: Asset + Decodable> Clone for AudioSourceBundle<T>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Decodable + Asset> Default for AudioSourceBundle<T>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<Source> DynamicBundle for AudioSourceBundle<Source>
where Source: Asset + Decodable,