From 0bad5b544d6b4d408b6bb6c4c626c49cf6ff5b0a Mon Sep 17 00:00:00 2001 From: Cory Forsstrom Date: Mon, 24 Aug 2020 19:40:04 -0700 Subject: [PATCH] use AudioSource as type for exported AudioOutput --- crates/bevy_audio/src/audio_output.rs | 4 ++-- examples/audio/audio.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/bevy_audio/src/audio_output.rs b/crates/bevy_audio/src/audio_output.rs index 42fdeabd1e234..d484e46b03da6 100644 --- a/crates/bevy_audio/src/audio_output.rs +++ b/crates/bevy_audio/src/audio_output.rs @@ -1,4 +1,4 @@ -use crate::Decodable; +use crate::{AudioSource, Decodable}; use bevy_asset::{Assets, Handle}; use bevy_ecs::Res; use parking_lot::RwLock; @@ -6,7 +6,7 @@ use rodio::{Device, Sink}; use std::collections::VecDeque; /// Used to play audio on the current "audio device" -pub struct AudioOutput

+pub struct AudioOutput

where P: Decodable, { diff --git a/examples/audio/audio.rs b/examples/audio/audio.rs index 1be30281575d8..21744477c8ce1 100644 --- a/examples/audio/audio.rs +++ b/examples/audio/audio.rs @@ -8,7 +8,7 @@ fn main() { .run(); } -fn setup(asset_server: Res, audio_output: Res>) { +fn setup(asset_server: Res, audio_output: Res) { let music = asset_server .load("assets/sounds/Windless Slopes.mp3") .unwrap();