bevy_oddio 0.1.0

A third party Bevy plugin that integrates `oddio` into Bevy.
Documentation

Bevy Oddio

Bevy tracking

A third party Bevy plugin that integrates oddio into Bevy.

Usage

#![allow(clippy::precedence)]

use bevy::prelude::*;
use bevy_oddio::*;

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .add_plugin(AudioPlugin)
        .add_startup_system()
        .add_startup_system(play_background_audio)
        .run();
}

fn play_background_audio(asset_server: Res<AssetServer>, audio: Res<Audio>) {
    audio.play(asset_server.load("background_audio.wav").to_signal(0.0));
}

Compatibility

bevy_oddio bevy
main main
0.1.0 0.8

License

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.

Acknowledgement

I'd like to say thanks to the authors of oddio and Bevy for making this plugin possible.