position. Otherwise, the corresponding file is loaded
and playback is started at the beginning of the file.
[/description]
+
+[subcommand pause]
+ purpose = suspend playback
+ [description]
+ When paused, it is still possible to jump around in
+ the file via the jmp and ff commands.
+ [/description]
}
EXPORT_PLAY_CMD_HANDLER(play);
-static int com_pause(struct play_task *pt, int argc, __a_unused char **argv)
+static int com_pause(struct play_task *pt,
+ __a_unused struct lls_parse_result *lpr)
{
char state;
long unsigned seconds, ss;
- if (argc != 1)
- return -E_PLAY_SYNTAX;
state = get_playback_state(pt);
pt->playing = false;
if (state != 'P')
kill_stream(pt);
return 0;
}
+EXPORT_PLAY_CMD_HANDLER(pause);
static int com_prev(struct play_task *pt,
__a_unused struct lls_parse_result *lpr)
SF: play.c
SN: list of commands
---
-N: pause
-D: Stop playing.
-U: pause
-H: When paused, it is still possible to jump around in the file via the jmp and ff
-H: comands.
----
N: tasks
D: Print list of active tasks.
U: tasks