use bevy::prelude::*; use bevy_kira_audio::prelude::*; fn main() { App::new() .add_plugins((DefaultPlugins, AudioPlugin)) // add our custom audio channel .add_audio_channel::() .add_systems(Startup, play) .run(); } // Use the channel via the `AudioChannel` resource fn play(background: Res>, asset_server: Res) { background .play(asset_server.load("sounds/loop.ogg")) .looped(); } // Our type for the custom audio channel #[derive(Resource)] struct Background;