From 3c094e3b898d09489c222caf423ffc5180c0266d Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Thu, 2 Jun 2022 18:37:08 -0500 Subject: [PATCH] Rename and make public. --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 156ec6b..970828e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -421,7 +421,7 @@ pub struct SynthizerConfig { } #[derive(Debug)] -struct Defaults { +pub struct SynthizerDefaults { panner_strategy: syz::PannerStrategy, distance_model: syz::DistanceModel, distance_ref: f64, @@ -431,7 +431,7 @@ struct Defaults { closeness_boost_distance: f64, } -fn sync_config(context: Res, config: Res, defaults: Res) { +fn sync_config(context: Res, config: Res, defaults: Res) { if config.is_changed() { context .default_panner_strategy() @@ -516,7 +516,7 @@ impl Plugin for SynthizerPlugin { if !app.world.contains_resource::() { app.insert_resource(SynthizerConfig::default()); } - let defaults = Defaults { + let defaults = SynthizerDefaults { panner_strategy: context.default_panner_strategy().get().unwrap(), distance_model: context.default_distance_model().get().unwrap(), distance_ref: context.default_distance_ref().get().unwrap(),