31 releases
0.14.2 | Sep 6, 2024 |
---|---|
0.14.0 | Jul 4, 2024 |
0.13.1 | Mar 18, 2024 |
0.12.1 | Nov 30, 2023 |
0.3.0 | Nov 3, 2020 |
#2491 in Game dev
66,280 downloads per month
Used in 42 crates
(5 directly)
4MB
71K
SLoC
Bevy Audio
lib.rs
:
Audio support for the game engine Bevy
fn main() {
App::new()
.add_plugins((MinimalPlugins, AssetPlugin::default(), AudioPlugin::default()))
.add_systems(Startup, play_background_audio)
.run();
}
fn play_background_audio(asset_server: Res<AssetServer>, mut commands: Commands) {
commands.spawn(AudioBundle {
source: asset_server.load("background_audio.ogg"),
settings: PlaybackSettings::LOOP,
});
}
Dependencies
~13–52MB
~867K SLoC