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

#2709 in Game dev

Download history 16169/week @ 2024-09-23 12728/week @ 2024-09-30 6376/week @ 2024-10-07 11359/week @ 2024-10-14 11088/week @ 2024-10-21 12759/week @ 2024-10-28 11642/week @ 2024-11-04 7507/week @ 2024-11-11 8807/week @ 2024-11-18 15370/week @ 2024-11-25 15225/week @ 2024-12-02 15925/week @ 2024-12-09 14792/week @ 2024-12-16 8344/week @ 2024-12-23 10754/week @ 2024-12-30 13996/week @ 2025-01-06

50,558 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
~772K SLoC