Bump Synthizer version.

This commit is contained in:
Nolan Darilek 2022-05-24 12:38:42 -05:00
parent 1c8b9b1865
commit 5eb557afc1
2 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ edition = "2021"
[dependencies]
anyhow = "1"
bevy = { version = "0.7", default-features = false }
synthizer = "0.4"
synthizer = "0.5"
[dev-dependencies]
bevy = { version = "0.7", default-features = true }

View File

@ -317,7 +317,7 @@ pub fn update_sound_properties(
let distance_model = distance_model
.cloned()
.map(|v| *v)
.unwrap_or_else(|| context.default_distance_modle().get().unwrap());
.unwrap_or_else(|| context.default_distance_model().get().unwrap());
source
.distance_model()
.set(distance_model)
@ -442,7 +442,7 @@ fn sync_config(context: Res<syz::Context>, config: Res<SynthizerConfig>, default
)
.expect("Failed to set panner strategy");
context
.default_distance_modle()
.default_distance_model()
.set(
config
.default_distance_model
@ -518,7 +518,7 @@ impl Plugin for SynthizerPlugin {
}
let defaults = Defaults {
panner_strategy: context.default_panner_strategy().get().unwrap(),
distance_model: context.default_distance_modle().get().unwrap(),
distance_model: context.default_distance_model().get().unwrap(),
distance_ref: context.default_distance_ref().get().unwrap(),
distance_max: context.default_distance_max().get().unwrap(),
rolloff: context.default_rolloff().get().unwrap(),