From b9580df3e8909e06cbe652ae7abe051f196a8540 Mon Sep 17 00:00:00 2001 From: ysr9029 <56439343+Nich87@users.noreply.github.com> Date: Sun, 17 Nov 2024 22:44:14 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8A=20Set=20the=20volume=20appropriate?= =?UTF-8?q?ly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/MotiCAT/TuneNekoSync/issues/12 --- src/classes/player.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/classes/player.ts b/src/classes/player.ts index 452584d..a4523e0 100644 --- a/src/classes/player.ts +++ b/src/classes/player.ts @@ -29,7 +29,7 @@ export class YTPlayer { }); this.player = createAudioPlayer(); this.queue = queueManager.getQueue(serverId) as Queue; - this.volume = 0.1; + this.volume = 1; this.player .on('subscribe', () => { this.isPlaying = true; @@ -52,7 +52,7 @@ export class YTPlayer { inputType: StreamType.WebmOpus, inlineVolume: true }); - this.resource.volume?.setVolume(this.volume); + this.resource.volume?.setVolume(this.volume / 10); this.connection.subscribe(this.player); this.player.play(this.resource); }