feat: use ffmpeg as stream backend and oto for sound output, GUI improvements #1
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