35 releases

new 0.15.0 Nov 29, 2024
0.15.0-rc.2 Oct 27, 2024
0.14.0 Jul 4, 2024
0.13.1 Mar 18, 2024
0.3.0 Nov 3, 2020

#2595 in Game dev

Download history 20572/week @ 2024-08-09 17039/week @ 2024-08-16 18469/week @ 2024-08-23 16979/week @ 2024-08-30 16481/week @ 2024-09-06 12447/week @ 2024-09-13 15177/week @ 2024-09-20 14133/week @ 2024-09-27 9131/week @ 2024-10-04 9949/week @ 2024-10-11 10960/week @ 2024-10-18 12087/week @ 2024-10-25 12329/week @ 2024-11-01 6853/week @ 2024-11-08 8681/week @ 2024-11-15 13050/week @ 2024-11-22

43,067 downloads per month
Used in 42 crates (5 directly)

MIT/Apache

5MB
93K SLoC

Bevy Audio

License Crates.io Downloads Docs Discord


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((
        AudioPlayer::new(asset_server.load("background_audio.ogg")),
        PlaybackSettings::LOOP,
    ));
}

Dependencies

~14–45MB
~794K SLoC