#![allow(clippy::precedence)] use {bevy::prelude::*, bevy_fundsp::prelude::*, bevy_kira_audio::prelude::*}; fn main() { App::new() .add_plugins(DefaultPlugins) .add_plugins(AudioPlugin) .add_plugins(DspPlugin::default()) .add_dsp_source(white_noise, SourceType::Static { duration: 60.0 }) .add_systems(Startup, play_noise) .run(); } fn white_noise() -> impl AudioUnit32 { white() >> split::() * 0.2 } fn play_noise( mut assets: ResMut>, dsp_manager: Res, audio: Res