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