//! Audio support for the game engine Bevy //! //! ``` //! # use bevy_ecs::{system::Res, event::EventWriter}; //! # use bevy_audio::{Audio, AudioPlugin}; //! # use bevy_asset::{AssetPlugin, AssetServer}; //! # use bevy_app::{App, AppExit}; //! # use bevy_internal::MinimalPlugins; //! fn main() { //! App::new() //! .add_plugins(MinimalPlugins) //! .add_plugin(AssetPlugin) //! .add_plugin(AudioPlugin) //! # .add_system(stop) //! .add_startup_system(play_background_audio) //! .run(); //! } //! //! fn play_background_audio(asset_server: Res, audio: Res