Skip to content

Commit

Permalink
use AudioSource as type for exported AudioOutput
Browse files Browse the repository at this point in the history
  • Loading branch information
tarkah committed Aug 25, 2020
1 parent 7682090 commit 0bad5b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_audio/src/audio_output.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
use crate::Decodable;
use crate::{AudioSource, Decodable};
use bevy_asset::{Assets, Handle};
use bevy_ecs::Res;
use parking_lot::RwLock;
use rodio::{Device, Sink};
use std::collections::VecDeque;

/// Used to play audio on the current "audio device"
pub struct AudioOutput<P>
pub struct AudioOutput<P = AudioSource>
where
P: Decodable,
{
Expand Down
2 changes: 1 addition & 1 deletion examples/audio/audio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fn main() {
.run();
}

fn setup(asset_server: Res<AssetServer>, audio_output: Res<AudioOutput<AudioSource>>) {
fn setup(asset_server: Res<AssetServer>, audio_output: Res<AudioOutput>) {
let music = asset_server
.load("assets/sounds/Windless Slopes.mp3")
.unwrap();
Expand Down

0 comments on commit 0bad5b5

Please sign in to comment.