mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
fix(lastfm): sync live scrobble counts & raise volume ceiling to 200%
This commit is contained in:
1 parent
7b2d29e229
commit
feaf57546e
3 files changed
+82
-3
No files matched your search
+2
-2
@@ -516,7 +516,7 @@ export default class Player extends EventEmitter {
|
||||
}
|
||||
|
||||
if (savedVol !== undefined && savedVol !== null) {
|
||||
this.preferredVolume = Utils.clamp(savedVol / 100, 0, 1);
|
||||
this.preferredVolume = Utils.clamp(savedVol / 100, 0, 2);
|
||||
logger.player(`[Player] Restored volume ${savedVol}% for guild ${this._guildId}`);
|
||||
}
|
||||
}
|
||||
@@ -1735,7 +1735,7 @@ export default class Player extends EventEmitter {
|
||||
// ═══════════════════════════════════════════════════════════════════════════
|
||||
|
||||
setVolume(v) {
|
||||
this.preferredVolume = Utils.clamp(v, 0, 1);
|
||||
this.preferredVolume = Utils.clamp(v, 0, 2);
|
||||
this.emit("volume", this.preferredVolume);
|
||||
this._mediaPlayer?.setVolume(this.preferredVolume);
|
||||
if (!this.connection)
|
||||
|
||||
Reference in new issue
Block a user