From b307bd23f6ab46412637107f00c9a535a4ced448 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Sun, 24 Oct 2021 05:30:15 -0700 Subject: [PATCH] Replace AppBuilder refernces with App references Per [this PR](https://github.com/bevyengine/bevy/pull/2531). Since the `Cargo.toml` points at bevy 0.5.0 and not `{ git = "https://github.com/bevyengine/bevy", branch = "main" }`, I don't think this'll build yet, but this is all I had to change to get this building locally. --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 0af1c5f..9b520d9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -54,7 +54,7 @@ use crate::source::OggLoader; use crate::source::SettingsLoader; #[cfg(feature = "wav")] use crate::source::WavLoader; -use bevy::prelude::{AddAsset, AppBuilder, CoreStage, IntoExclusiveSystem, Plugin}; +use bevy::prelude::{AddAsset, App, CoreStage, IntoExclusiveSystem, Plugin}; use std::marker::PhantomData; #[cfg(all( @@ -97,7 +97,7 @@ compile_error!("You need to enable at least one of the bevy_kira_audio features pub struct AudioPlugin; impl Plugin for AudioPlugin { - fn build(&self, app: &mut AppBuilder) { + fn build(&self, app: &mut App) { app.init_non_send_resource::() .add_asset::(); @@ -180,7 +180,7 @@ impl Plugin for AudioStreamPlugin where T: AudioStream, { - fn build(&self, app: &mut AppBuilder) { + fn build(&self, app: &mut App) { app.init_resource::>().add_system_to_stage( CoreStage::PostUpdate, stream_audio_system::.exclusive_system(),