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(),