From 1c8b9b18654fee6570e56585b67ae0e51995972a Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Tue, 24 May 2022 11:17:49 -0500 Subject: [PATCH] Use exponential distance model in example. --- examples/game.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/game.rs b/examples/game.rs index 41f76c1..af92386 100644 --- a/examples/game.rs +++ b/examples/game.rs @@ -43,7 +43,7 @@ fn load_and_create( let buffer = asset_server.get_handle(handle); commands .spawn() - .insert(Transform::from_translation(Vec3::new(45., 0., 0.))) + .insert(Transform::from_translation(Vec3::new(10., 0., 0.))) .insert(Sound { buffer, looping: true, @@ -65,6 +65,7 @@ fn main() { .add_plugins(DefaultPlugins) .insert_resource(SynthizerConfig { default_panner_strategy: Some(bevy_synthizer::syz::PannerStrategy::Hrtf), + default_distance_model: Some(bevy_synthizer::syz::DistanceModel::Inverse), ..default() }) .add_plugin(SynthizerPlugin)