Added volume controls

This commit is contained in:
2022-03-22 00:22:23 +01:00
parent 8eb850d9fe
commit 8fc218ac2d
5 changed files with 93 additions and 17 deletions

View File

@@ -21,3 +21,13 @@ func newTrackPauseCmd(isPaused bool) tea.Cmd {
return trackPauseMsg{isPaused}
}
}
type trackVolumeMsg struct {
volume float64
}
func newTrackVolumeCmd(volume float64) tea.Cmd {
return func() tea.Msg {
return trackVolumeMsg{volume}
}
}