//! This example illustrates how to load and play an audio file, and control how it's played. use bevy::{math::ops, prelude::*}; fn main() { App::new() .add_plugins(DefaultPlugins) .add_systems(Startup, setup) .add_systems(Update, (update_speed, pause, volume)) .run(); } fn setup(mut commands: Commands, asset_server: Res) { commands.spawn(( AudioPlayer::new(asset_server.load("sounds/Windless Slopes.ogg")), MyMusic, )); } #[derive(Component)] struct MyMusic; fn update_speed(music_controller: Query<&AudioSink, With>, time: Res