fix: mute function did not mute
This commit is contained in:
parent
0a75f65a02
commit
822094de4c
1 changed files with 1 additions and 0 deletions
1
main.go
1
main.go
|
@ -228,6 +228,7 @@ func (player *StreamPlayer) Mute() {
|
|||
if player.IsPlaying() {
|
||||
if player.otoPlayer.Volume() > 0 {
|
||||
player.currentVolume = player.otoPlayer.Volume()
|
||||
player.otoPlayer.SetVolume(0.0)
|
||||
} else {
|
||||
player.otoPlayer.SetVolume(player.currentVolume)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue