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

#2724 in Game dev

Download history 10906/week @ 2024-10-02 8395/week @ 2024-10-09 10735/week @ 2024-10-16 11658/week @ 2024-10-23 12829/week @ 2024-10-30 9051/week @ 2024-11-06 8194/week @ 2024-11-13 10991/week @ 2024-11-20 16344/week @ 2024-11-27 13091/week @ 2024-12-04 18853/week @ 2024-12-11 13161/week @ 2024-12-18 5993/week @ 2024-12-25 14177/week @ 2025-01-01 13953/week @ 2025-01-08 25340/week @ 2025-01-15

62,034 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–45MB
~762K SLoC