Type Alias bevy::audio::prelude::AudioBundle

pub type AudioBundle = AudioSourceBundle<AudioSource>;
Expand description

Bundle for playing a standard bevy audio asset

Aliased Type§

struct AudioBundle {
    pub source: Handle<AudioSource>,
    pub settings: PlaybackSettings,


§source: Handle<AudioSource>

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§


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


fn default() -> AudioSourceBundle<T>

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

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


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