default user volume is 50 now
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -810,7 +810,7 @@ func (p *Player) saveState() {
|
||||
return
|
||||
}
|
||||
|
||||
volume := int64(MaxUserVol)
|
||||
volume := int64(DefaultUserVol)
|
||||
muted := false
|
||||
|
||||
if p.volume != nil {
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user