default user volume is 50 now

This commit is contained in:
2026-02-25 19:32:44 -05:00
parent 012131283c
commit d5010e6fa8
6 changed files with 6 additions and 848 deletions
@@ -1,6 +1,6 @@
CREATE TABLE IF NOT EXISTS player_state (
id INTEGER PRIMARY KEY CHECK(id = 1),
volume INTEGER NOT NULL DEFAULT 100,
volume INTEGER NOT NULL DEFAULT 50,
muted BOOLEAN NOT NULL DEFAULT false,
last_track_path TEXT NOT NULL DEFAULT '',
last_position_seconds INTEGER NOT NULL DEFAULT 0
+1 -1
View File
@@ -810,7 +810,7 @@ func (p *Player) saveState() {
return
}
volume := int64(MaxUserVol)
volume := int64(DefaultUserVol)
muted := false
if p.volume != nil {
+4 -3
View File
@@ -8,13 +8,14 @@ type Volume float64
// User volume range bounds.
const (
MinUserVol UserVolume = 0
MaxUserVol UserVolume = 100
MinUserVol UserVolume = 0
MaxUserVol UserVolume = 100
DefaultUserVol UserVolume = 50
)
// Internal volume range bounds.
const (
MinVol Volume = -6
MinVol Volume = -5
MaxVol Volume = 0
)