Fix stream grabbing.
[paraslash.git] / audiod.cmd
1 OF: audiod_command_list
2 SF: audiod_command.c
3 HC: prototypes for the audiod command handlers
4 CC: array of audiod commands
5 AT: audiod_command
6 IN: list para sched audiod
7 SN: list of audiod commands
8 ---
9 N: cycle
10 D: switch to next mode
11 U: cycle
12 H: on -> standby -> off -> on
13 ---
14 N: grab
15 D: grab the audio stream
16 L:
17 U: -- grab [-m[{s|p|a}]] [-p=<parent>] [-o]
18 H:
19 H: grab ('splice') the audio stream at any position in the filter
20 H: chain and send that data back to the client.
21 H:
22 H: Options:
23 H:
24 H: -m Change grab mode. Defaults to sloppy grab if not given.
25 H:
26 H: -ms: sloppy grab
27 H:
28 H: -mp: pedantic grab
29 H:
30 H: -ma: aggressive grab
31 H:
32 H: The various grab modes only differ in what happens if the
33 H: file descriptor to write the grabbed audio data to is not
34 H: ready for writing (i.e. would block). Sloppy mode ignores
35 H: the write, pedantic mode aborts and aggressive mode tries
36 H: to write anyway.
37 H:
38 H: -p Grab output of this node of the buffer tree.
39 H:
40 H: -o One-shot mode: Stop grabbing if audio file changes.
41 ---
42 N: help
43 D: display command list or help for given command
44 U: help [command]
45 H: When I was younger, so much younger than today, I never needed anybody's help
46 H: in any way. But now these days are gone, I'm not so self assured. Now I find
47 H: I've changed my mind and opened up the doors.
48 H: -- Beatles: Help
49 ---
50 N: kill
51 D: kill an active audiod task
52 U: kill task_id [task_id ...]
53 H: Simulate an error condition for the given task(s)
54 ---
55 N: off
56 D: deactivate para_audiod
57 U: off
58 H: Close connection to para_server and stop all decoders.
59 ---
60 N: on
61 D: activate para_audiod
62 U: on
63 H: Establish connection to para_server, retrieve para_server's current status. If
64 H: playing, start corresponding decoder. Otherwise stop all decoders.
65 ---
66 N: sb
67 D: enter standby mode
68 U: sb
69 H: Stop all decoders but leave connection to para_server open.
70 ---
71 N: stat
72 D: print status information
73 U: stat [-p] [item1 ...]
74 H: Dump given status items (all if none given) to stdout. If -p is given, use
75 H: parser-friendly mode.
76 ---
77 N: tasks
78 D: list current tasks
79 U: tasks
80 H: print the list of task ids together with the status of each task
81 ---
82 N: term
83 D: terminate audiod
84 U: term
85 H: Stop all decoders, shut down connection to para_server and exit.