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

Download history 12026/week @ 2024-05-29 11019/week @ 2024-06-05 9523/week @ 2024-06-12 10231/week @ 2024-06-19 10652/week @ 2024-06-26 10163/week @ 2024-07-03 14458/week @ 2024-07-10 15516/week @ 2024-07-17 16892/week @ 2024-07-24 16229/week @ 2024-07-31 18599/week @ 2024-08-07 18081/week @ 2024-08-14 16920/week @ 2024-08-21 18124/week @ 2024-08-28 18143/week @ 2024-09-04 10822/week @ 2024-09-11

66,280 downloads per month
Used in 42 crates (5 directly)

MIT/Apache

4MB
71K 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(AudioBundle {
        source: asset_server.load("background_audio.ogg"),
        settings: PlaybackSettings::LOOP,
    });
}

Dependencies

~13–52MB
~867K SLoC