This bevy plugin is intended to try integrating Kira into Bevy. The end goal would be to replace or update bevy_audio
, if Kira turns out to be a good approach. Currently, this plugin can play .ogg
, .mp3
, .flac
, and .wav
formats and supports web builds for everything except for mp3
.
I am using Oicana as "guinea pig project" and will keep it's game audio plugin up to date with this crate.
To initialize the corresponding AssetLoaders
, use at least one of the features ogg
, mp3
, wav
, or flac
. The following example assumes that bevy_kira_audio/ogg
is used.
```rust use bevykiraaudio::{Audio, AudioPlugin};
// in your game's AppBuilder: // app.add_plugin(AudioPlugin)
fn myaudiosystem(
assetserver: Res
ogg
mp3
wav
flac
ogg
, flac
and wav
can be build for WASM. There are some differences between browsers:This crate is distributed under the terms of the MIT license.
Substantial parts of the asset loaders were taken from Kira (MIT license Copyright 2020 Andrew Minnich
).