Skip to content

Commit

Permalink
durationRatio bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
GrandpaBond committed Nov 9, 2023
1 parent f611b58 commit 8018ce5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flexFX.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8018ce5

Please sign in to comment.