From 822094de4c8e4ecb51cd229bd5c39101350886c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Cuevas?= Date: Wed, 6 Dec 2023 16:32:47 +0100 Subject: [PATCH] fix: mute function did not mute --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 82ba670..dfc2940 100644 --- a/main.go +++ b/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) }