added LoopState datatype for more precise control

This commit is contained in:
2025-08-30 15:23:33 +02:00
parent 95d2a1e1a4
commit 6fc6cec502
4 changed files with 86 additions and 10 deletions

View File

@ -26,10 +26,10 @@ func SetPlaylistPosition(socket string, index int) error {
return SetProperty(socket, "playlist-pos", index)
}
func SetLoopFile(socket string, loopFile bool) error {
return SetProperty(socket, "loop-file", loopFile)
func SetLoopFile(socket string, loopFile LoopState) error {
return SetProperty(socket, "loop-file", loopFile.String())
}
func SetLoopPlaylist(socket string, loopPlaylist bool) error {
return SetProperty(socket, "loop-playlist", loopPlaylist)
func SetLoopPlaylist(socket string, loopPlaylist LoopState) error {
return SetProperty(socket, "loop-playlist", loopPlaylist.String())
}