mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-04-28 13:48:53 +08:00
fix volume bug
This commit is contained in:
parent
bb72b664a6
commit
cc3d55fe08
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user