fix volume bug

This commit is contained in:
raziman 2020-07-04 10:17:52 +08:00
parent bb72b664a6
commit cc3d55fe08
2 changed files with 1 additions and 2 deletions

View File

@ -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()

View File

@ -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)