From 18a0710174e42a2c006f382f84b99f2e0133e84d Mon Sep 17 00:00:00 2001 From: Niklas Eicker Date: Thu, 4 Jul 2024 21:43:10 +0200 Subject: [PATCH] Bump to Bevy 0.14 --- CHANGELOG.md | 3 +++ Cargo.toml | 6 +++--- README.md | 5 +++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b2b53e..c9ea6fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## v0.20.0 - 04.07.2024 +- Update to Bevy `0.14` + ## v0.19.0 - 17.02.2024 - Update to Bevy `0.13` diff --git a/Cargo.toml b/Cargo.toml index bfccba5..2cd692f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bevy_kira_audio" -version = "0.20.0-rc.1" +version = "0.20.0" authors = ["Niklas Eicker "] edition = "2021" license = "MIT OR Apache-2.0" @@ -22,7 +22,7 @@ wav = ["kira/wav"] settings_loader = ["dep:ron", "dep:serde", "kira/serde"] [dependencies] -bevy = { version = "0.14.0-rc.3", default-features = false, features = ["bevy_asset"] } +bevy = { version = "0.14.0", default-features = false, features = ["bevy_asset"] } anyhow = "1.0" uuid = { version = "1", features = ["fast-rng"] } kira = { version = "0.8", default-features = false, features = ["cpal"] } @@ -32,7 +32,7 @@ parking_lot = "0.12" thiserror = "1.0" [dev-dependencies.bevy] -version = "0.14.0-rc.3" +version = "0.14.0" default-features = false features = [ "bevy_asset", diff --git a/README.md b/README.md index d604e05..8a7a29c 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Sound can be played in channels. Each channel has controls to pause or stop play ## Usage -*Note: the Bevy feature `bevy_audio` is enabled by default and not compatible with this plugin. Make sure to not have the `bevy_audio` feature enabled if you want to use `bevy_kira_audio`. The same goes for Bevy's `vorbis` feature. See [Bevys' Cargo file][bevy_default_features] for a list of all default features of version `0.12` and list them manually in your Cargo file excluding the ones you do not want. Make sure to set `default-features` to `false` for the Bevy dependency. You can take a look at [bevy_game_template's cargo file as an example](https://github.com/NiklasEi/bevy_game_template/blob/main/Cargo.toml).* +*Note: the Bevy feature `bevy_audio` is enabled by default and not compatible with this plugin. Make sure to not have the `bevy_audio` feature enabled if you want to use `bevy_kira_audio`. The same goes for Bevy's `vorbis` feature. See [Bevys' Cargo file][bevy_default_features] for a list of all default features of version `0.14` and list them manually in your Cargo file excluding the ones you do not want. Make sure to set `default-features` to `false` for the Bevy dependency. You can take a look at [bevy_game_template's cargo file as an example](https://github.com/NiklasEi/bevy_game_template/blob/main/Cargo.toml).* To play audio, you usually want to load audio files as assets. This requires `AssetLoaders`. `bevy_kira_audio` comes with loaders for most common audio formats. You can enable them with the features `ogg` (enabled by default), `mp3`, `wav`, or `flac`. The following example assumes that the feature `ogg` is enabled. @@ -91,6 +91,7 @@ Compatibility of `bevy_kira_audio` versions: | Bevy version | `bevy_kira_audio` version | |:-------------|:--------------------------| +| `0.14` | `0.20` | | `0.13` | `0.19` | | `0.12` | `0.18` | | `0.11` | `0.16` - `0.17` | @@ -124,4 +125,4 @@ additional terms or conditions. [kira]: https://github.com/tesselode/kira -[bevy_default_features]: https://github.com/bevyengine/bevy/blob/v0.13.0/Cargo.toml#L55-L80 +[bevy_default_features]: https://github.com/bevyengine/bevy/blob/v0.14.0/Cargo.toml#L56-L86