diff --git a/crates/bevy_audio/src/audio.rs b/crates/bevy_audio/src/audio.rs index 0e17168f9b6a6..546e158e3f906 100644 --- a/crates/bevy_audio/src/audio.rs +++ b/crates/bevy_audio/src/audio.rs @@ -1,256 +1,9 @@ -use crate::{AudioSink, AudioSource, Decodable, SpatialAudioSink}; -use bevy_asset::{Asset, Handle, HandleId}; +use crate::{AudioSource, Decodable}; +use bevy_asset::{Asset, Handle}; use bevy_derive::{Deref, DerefMut}; -use bevy_ecs::system::Resource; +use bevy_ecs::prelude::*; use bevy_math::Vec3; use bevy_transform::prelude::Transform; -use parking_lot::RwLock; -use std::{collections::VecDeque, fmt}; - -/// Use this [`Resource`] to play audio. -/// -/// ``` -/// # use bevy_ecs::system::Res; -/// # use bevy_asset::AssetServer; -/// # use bevy_audio::Audio; -/// fn play_audio_system(asset_server: Res, audio: Res