Skip to content

Commit

Permalink
Replace AppBuilder refernces with App references
Browse files Browse the repository at this point in the history
Per [this PR](bevyengine/bevy#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.
  • Loading branch information
weswigham authored Oct 24, 2021
1 parent 14d6fee commit b307bd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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::<AudioOutput>()
.add_asset::<AudioSource>();

Expand Down Expand Up @@ -180,7 +180,7 @@ impl<T> Plugin for AudioStreamPlugin<T>
where
T: AudioStream,
{
fn build(&self, app: &mut AppBuilder) {
fn build(&self, app: &mut App) {
app.init_resource::<StreamedAudio<T>>().add_system_to_stage(
CoreStage::PostUpdate,
stream_audio_system::<T>.exclusive_system(),
Expand Down

0 comments on commit b307bd2

Please sign in to comment.