36 releases

0.15.1 Jan 3, 2025
0.15.0 Nov 29, 2024
0.15.0-rc.2 Oct 27, 2024
0.14.0 Jul 4, 2024
0.3.0 Nov 3, 2020

#2712 in Game dev

Download history 14014/week @ 2024-09-26 10257/week @ 2024-10-03 9155/week @ 2024-10-10 10567/week @ 2024-10-17 12081/week @ 2024-10-24 12563/week @ 2024-10-31 7962/week @ 2024-11-07 8210/week @ 2024-11-14 12328/week @ 2024-11-21 16357/week @ 2024-11-28 13884/week @ 2024-12-05 19084/week @ 2024-12-12 10905/week @ 2024-12-19 6568/week @ 2024-12-26 15044/week @ 2025-01-02 17504/week @ 2025-01-09

53,427 downloads per month
Used in 44 crates (6 directly)

MIT/Apache

5MB
92K 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–49MB
~771K SLoC