From c2ff70955f0d9b74550a1bfd0d09a081d4308c74 Mon Sep 17 00:00:00 2001 From: Snowflake107 Date: Mon, 10 May 2021 14:54:35 +0545 Subject: [PATCH] stream time --- src/Structures/Queue.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Structures/Queue.ts b/src/Structures/Queue.ts index 1cee68b..0a173f2 100644 --- a/src/Structures/Queue.ts +++ b/src/Structures/Queue.ts @@ -156,7 +156,12 @@ export class Queue extends EventEmitter { * @type {Number} */ get currentStreamTime(): number { - return this.voiceConnection?.dispatcher?.streamTime + this.additionalStreamTime || 0; + const NC = this.filters.nightcore ? 1.25 : null; + const VW = this.filters.vaporwave ? 0.8 : null; + const streamTime = this.voiceConnection?.dispatcher?.streamTime + this.additionalStreamTime || 0; + + if (NC && VW) return streamTime * (NC + VW); + return NC ? streamTime * NC : VW ? (streamTime * VW) : streamTime; } /**