From 4f972e3bd4d087ef8530876375732c834b3e6c7b Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Thu, 4 May 2023 15:03:07 -0500 Subject: [PATCH] fix: Instantiate sources for sounds without a source in `PreUpdate`. --- src/lib.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 0a4dec2..37081ad 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -759,13 +759,18 @@ impl Plugin for SynthizerPlugin { .insert_resource(defaults) .add_event::() .add_systems( - (sync_config, swap_buffers, change_panner_strategy) + ( + sync_config, + swap_buffers, + change_panner_strategy, + add_sound_without_source, + ) .in_set(SynthizerSets::First) .in_base_set(CoreSet::PreUpdate), ) .configure_set(SynthizerSets::First.before(SynthizerSets::UpdateHandles)) .add_systems( - (add_source_handle, add_generator, add_sound_without_source) + (add_source_handle, add_generator) .in_base_set(CoreSet::PostUpdate) .in_set(SynthizerSets::UpdateHandles), )