Crates.io | bevy_oddio |
lib.rs | bevy_oddio |
version | 0.5.0 |
source | src |
created_at | 2022-08-01 12:55:50.396098 |
updated_at | 2023-08-14 11:15:15.363161 |
description | A third party Bevy plugin that integrates `oddio` into Bevy. |
homepage | https://github.com/harudagondi/bevy_oddio |
repository | https://github.com/harudagondi/bevy_oddio |
max_upload_size | |
id | 636755 |
size | 177,343 |
A third party Bevy plugin that integrates oddio
into Bevy.
use bevy::prelude::*;
use bevy_oddio::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugin(AudioPlugin::new())
.add_startup_system(play_background_audio)
.run();
}
fn play_background_audio(asset_server: Res<AssetServer>, mut audio: ResMut<Audio<[f32; 2]>>) {
audio.play(asset_server.load("background_audio.wav"), 0.0);
}
bevy_oddio |
bevy |
---|---|
bevy_main | main |
0.3.0 | 0.9 |
0.1.0-0.2.0 | 0.8 |
bevy_oddio
is primarily distributed under the terms of both the MIT license
and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.
I'd like to say thanks to the authors of oddio
and Bevy for making this plugin possible.
Ko-fi