From 8018ce5688b1064c52e213f86162ad8d909d0b29 Mon Sep 17 00:00:00 2001 From: GrandpaBond <89019204+GrandpaBond@users.noreply.github.com> Date: Thu, 9 Nov 2023 07:35:46 +0000 Subject: [PATCH] durationRatio bug fixed --- flexFX.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flexFX.ts b/flexFX.ts index 27b3d6e..cc3380a 100644 --- a/flexFX.ts +++ b/flexFX.ts @@ -454,7 +454,7 @@ namespace flexFX { sound.volume = this.goodVolume(this.volumeProfile[i] * volumeLimit); sound.endVolume = this.goodVolume(this.volumeProfile[i + 1] * volumeLimit); } - if (volumeRatio != 1.0) { + if (durationRatio != 1.0) { sound.duration = this.goodDuration(this.durationProfile[i] * durationRatio); } play.parts[i] = new SoundExpression(sound.src); // modified string