Type Alias bevy_audio::AudioBundle
source · 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,
}Fields§
§source: Handle<AudioSource>Asset containing the audio data to play.
settings: PlaybackSettingsInitial 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.