Skip to content

Commit

Permalink
feat: add kira sound library
Browse files Browse the repository at this point in the history
  • Loading branch information
nwesterhausen committed Mar 7, 2024
1 parent ae4962c commit 2f63c8d
Show file tree
Hide file tree
Showing 5 changed files with 159 additions and 4 deletions.
141 changes: 140 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions game_library/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "game_library"
version = "2.5.0"
version = "2.6.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand All @@ -9,8 +9,8 @@ edition = "2021"
bevy = "0.13"
bevy-inspector-egui = "0.23.2"
bevy_hanabi = "0.10.0"
# Local disk storage in a key-value store. Settings are stored with this.
bevy_pkv = { git = "https://github.com/johanhelsing/bevy_pkv", rev = "af0b750b1dbfc8db58dbb2bd07c5eda72e714b79" }
# Local disk storage in a key-value store. Settings are stored with this. Has to track main until next release.
bevy_pkv = { git = "https://github.com/johanhelsing/bevy_pkv", rev = "af0b750b1dbfc8db58dbb2bd07c5eda72e714b79" } # main
noise = "0.8.2"
serde = "1.0.197"
serde_default_utils = "0.2.1"
Expand All @@ -22,6 +22,7 @@ bevy_rapier2d = { version = "0.25.0", features = [
"debug-render-2d",
] }
platform-dirs = "0.3.0"
bevy_kira_audio = "0.19.0"

[dependencies.rand]
version = "0.8.5"
Expand Down
3 changes: 3 additions & 0 deletions game_library/src/audio/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//! Audio module for the game library. Handles audio playback and management.

mod plugin;
11 changes: 11 additions & 0 deletions game_library/src/audio/plugin.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//! Plugin for audio

use bevy::prelude::*;

/// Audio plugin
#[allow(clippy::module_name_repetitions)]
pub struct AudioPlugin;

impl Plugin for AudioPlugin {
fn build(&self, app: &App) {}
}
1 change: 1 addition & 0 deletions game_library/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ pub mod state;

mod acceleration;
mod attribute;
mod audio;
mod biome;
mod camera_scale;
mod cursor_position;
Expand Down

0 comments on commit 2f63c8d

Please sign in to comment.