use bevy::prelude::*; use bevy_kira_audio::prelude::*; use kira::tween::Easing; use std::time::Duration; // This example demonstrates how to control an audio channel // This kind of control is deferred to the end of the current frame update // Left-click to pause the audio // Right-click to resume the audio fn main() { App::new() .add_plugins((DefaultPlugins, AudioPlugin)) .add_systems(Startup, play_loop) .add_systems(Update, channel_control) .run(); } fn channel_control(input: Res>, audio: Res