mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
at lest not glitching
This commit is contained in:
1 parent
b5a94a4f60
commit
2292a74274
2 files changed
+2
-2
No files matched your search
@@ -339,7 +339,7 @@ export class PlayerManager {
|
||||
});
|
||||
|
||||
player.on("volume", (volume) => {
|
||||
emit("volume", volume);
|
||||
emit("volume", volume * 100);
|
||||
this.dashboard.playerUpdate({ type: "volume" }, player);
|
||||
});
|
||||
|
||||
|
||||
@@ -281,7 +281,7 @@ export class Dashboard {
|
||||
const authErr = this._authorizePlayerControl(user, player);
|
||||
if (authErr) return { error: authErr };
|
||||
const vol = Number(params.data.volume);
|
||||
if (isNaN(vol) || vol < 0 || vol > 150) return { error: "Volume must be between 0 and 150" };
|
||||
if (isNaN(vol) || vol < 0 || vol > 200) return { error: "Volume must be between 0 and 200" };
|
||||
const msg = player.setVolume(vol / 100);
|
||||
return { message: msg };
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user