added LoopState datatype for more precise control
This commit is contained in:
@ -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())
|
||||
}
|
||||
|
Reference in New Issue
Block a user