Skip to content

Commit

Permalink
🔊 Set the volume appropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
Nich87 committed Nov 17, 2024
1 parent f146500 commit b9580df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/classes/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}
Expand Down

0 comments on commit b9580df

Please sign in to comment.