Skip to content
Extraits de code Groupes Projets
Vérifiée Valider c501d311 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

CMDS: Add pause/unpause commands to lkt, also update the documentation

parent 8ebd02ba
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!141Improve MPD compatibility
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
- Assert and abort will trigger a SEGV to try to display the backtrace - Assert and abort will trigger a SEGV to try to display the backtrace
- Check if downloaded karas are matroska files (only the magic number) - Check if downloaded karas are matroska files (only the magic number)
- In case of restart get the klkt instance launched by the previous lektord - In case of restart get the klkt instance launched by the previous lektord
- The 'pause' command may take one argument to force the 'paused' state of lektord
- Add window icon - Add window icon
- Add the Klkt client (notification for desktops) to the lektor project - Add the Klkt client (notification for desktops) to the lektor project
- Add AppImage builds for lektord, lkt and klkt - Add AppImage builds for lektord, lkt and klkt
...@@ -14,7 +15,7 @@ ...@@ -14,7 +15,7 @@
- Add the \_\_flat command to set all priorities to 1 in the queue - Add the \_\_flat command to set all priorities to 1 in the queue
- Add MPD commands: seek, seekid, seekcur, delete (partial), playlistid - Add MPD commands: seek, seekid, seekcur, delete (partial), playlistid
- Alias list\* commands as find - Alias list\* commands as find
- lkt handle the playlistid (queue id) and \_\_flat (queue flatten) commands - lkt handle the playlistid (queue id) and \_\_flat (queue flatten), pause, unpause commands
- lkt shuffle works the same way as klkt, it doens't force the 'play' command but unpause, i.e it doesn't replay the kara - lkt shuffle works the same way as klkt, it doens't force the 'play' command but unpause, i.e it doesn't replay the kara
- Remove archlinux package support (replaced by AppImage) - Remove archlinux package support (replaced by AppImage)
- Fix dl process with the repo module - Fix dl process with the repo module
......
...@@ -200,7 +200,7 @@ For the compatibility column, the possible values are the following: ...@@ -200,7 +200,7 @@ For the compatibility column, the possible values are the following:
| `replay_gain_mode {mode}` | | | not implemented | | `replay_gain_mode {mode}` | | | not implemented |
| `replay_gain_status` | | | not implemented | | `replay_gain_status` | | | not implemented |
| `next` | `next` | + | | | `next` | `next` | + | |
| `pause {state}` | `pause {state}` | CHECK | check compat state | | `pause {state}` | `pause {state}` | + | |
| `play [songpos]` | `play [songpos]` | + | if no `songpos` passed, defaults to `0` | | `play [songpos]` | `play [songpos]` | + | if no `songpos` passed, defaults to `0` |
| `playid [songid]` | `playid {songid}` | + | get the first found `songid` in the queue | | `playid [songid]` | `playid {songid}` | + | get the first found `songid` in the queue |
| `previous` | `previous` | + | | | `previous` | `previous` | + | |
......
...@@ -28,26 +28,32 @@ Here are the \fBlkt\fP commands: ...@@ -28,26 +28,32 @@ Here are the \fBlkt\fP commands:
\fBcurrent\fP \fBcurrent\fP
Prints informations about the currently playing kara. Can be used to Prints informations about the currently playing kara. Can be used to
display the current kara in a status bar like \fBxmobar\fP or in the display the current kara in a status bar like \fBxmobar\fP or in the
\fBi3 panel\fP \fBi3 panel\fP.
.TP .TP
\fBplay\fP [index] \fBplay\fP [index]
Toggle play/pause state. If the playback is stopped, start at a possibly Toggle play/pause state. If the playback is stopped, start at a possibly
specified index specified index.
.TP
\fBpause\fP
For lektord to be paused, don't do anything is lektord is already paused.
.TP
\fBunpause\fP
Unpause lektord, don't do anything if lektord is already playing or if it is
stopped. In that case use the \fBplay\fP command.
.TP .TP
\fBnext\fP \fBnext\fP
Play next kara in the queue Play next kara in the queue.
.TP .TP
\fBprevious\fP \fBprevious\fP
Play the previous kara in the queue Play the previous kara in the queue.
.TP .TP
\fBshuffle\fP \fBshuffle\fP
Shuffle the queue. If the state was stoppped, play from the first kara Shuffle the queue. If lektord was paused it will unpause but if it was stopped
in the queue. If lektor was already playing a kara, it will play it it won't start. If it exists, the current kara will be placed in the first
from the begening. The current kara will be placed in first position place in the queue.
in the queue.
.TP .TP
\fBstatus\fP \fBstatus\fP
Prints information about the state of lektor and the currently playing kara Prints information about the state of lektor and the currently playing kara.
.TP .TP
\fBstop\fP \fBstop\fP
Stop the playback and reading the queue, the state is now \fIstopped\fP. Stop the playback and reading the queue, the state is now \fIstopped\fP.
......
...@@ -309,6 +309,8 @@ just_send(queue_crop__, "crop\n") ...@@ -309,6 +309,8 @@ just_send(queue_crop__, "crop\n")
just_send(next__, "next\n") just_send(next__, "next\n")
just_send(prev__, "previous\n") just_send(prev__, "previous\n")
just_send(stop__, "stop\n") just_send(stop__, "stop\n")
just_send(pause__, "pause 1\n")
just_send(unpause__, "pause 0\n")
just_send(shuffle__, "shuffle\npause 0\n") just_send(shuffle__, "shuffle\npause 0\n")
just_send(queue_flatten__, "__flat\n") just_send(queue_flatten__, "__flat\n")
#undef just_send #undef just_send
...@@ -1212,6 +1214,8 @@ queue__(struct cmd_args *args) ...@@ -1212,6 +1214,8 @@ queue__(struct cmd_args *args)
static struct cmd_opt options_[] = { static struct cmd_opt options_[] = {
{ .name = "current", .call = current__ }, { .name = "current", .call = current__ },
{ .name = "play", .call = play__ }, { .name = "play", .call = play__ },
{ .name = "pause", .call = pause__ },
{ .name = "unpause", .call = unpause__ },
{ .name = "next", .call = next__ }, { .name = "next", .call = next__ },
{ .name = "previous", .call = prev__ }, { .name = "previous", .call = prev__ },
{ .name = "queue", .call = queue__ }, { .name = "queue", .call = queue__ },
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter