From 430d18ea3baf730d9ce8753741ea15c854d364e4 Mon Sep 17 00:00:00 2001 From: DevAndromeda <46562212+DevAndromeda@users.noreply.github.com> Date: Tue, 19 Jul 2022 20:22:26 +0545 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9BFix=20initialVolume=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Structures/Queue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Structures/Queue.ts b/src/Structures/Queue.ts index 96a24f4..94ad098 100644 --- a/src/Structures/Queue.ts +++ b/src/Structures/Queue.ts @@ -708,7 +708,7 @@ class Queue { this._filtersUpdate = options.filtersUpdate; const volumeTransformer = resource.volume as VolumeTransformer; - if (volumeTransformer && typeof this.options.initialVolume === "number") Reflect.set(volumeTransformer, "volume", Math.pow(this.options.initialVolume, 1.660964)); + if (volumeTransformer && typeof this.options.initialVolume === "number") Reflect.set(volumeTransformer, "volume", Math.pow(this.options.initialVolume / 100, 1.660964)); if (volumeTransformer?.hasSmoothness && typeof this.options.volumeSmoothness === "number") { if (typeof volumeTransformer.setSmoothness === "function") volumeTransformer.setSmoothness(this.options.volumeSmoothness || 0); }