diff --git a/player.go b/player.go index 643a51f..9f11e7c 100644 --- a/player.go +++ b/player.go @@ -186,7 +186,7 @@ func (p *Player) Volume(v float64) float64 { if p._volume == nil { p.volume += v - return v + return p.volume } speaker.Lock() diff --git a/start.go b/start.go index d2b6c44..8bded6b 100644 --- a/start.go +++ b/start.go @@ -90,7 +90,6 @@ func start(application *tview.Application) { player.TogglePause() case '+': - v := int(player.volume*10) + 50 if v < 50 { vol := player.Volume(0.5)