Debian Codegraph @

doc/RPLAY.info

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 This is Info file RPLAY.info, produced by Makeinfo-1.63 from the input
2 file RPLAY.texi.
3
4 This file documents RPLAY protocol.
5
6 Copyright (C) 1995 Mark Boyns
7
8 Permission is granted to make and distribute verbatim copies of this
9 manual provided the copyright notice and this permission notice are
10 preserved on all copies.
11
12 Permission is granted to copy and distribute modified versions of
13 this manual under the conditions for verbatim copying, provided also
14 that the entire resulting derived work is distributed under the terms
15 of a permission notice identical to this one.
16
17 Permission is granted to copy and distribute translations of this
18 manual into another language, under the above conditions for modified
19 versions.
20
21 
22 File: RPLAY.info, Node: Top, Next: Overview, Prev: (dir), Up: (dir)
23
24 RPLAY
25 *****
26
27 This file documents the RPLAY protocol.
28
29 * Menu:
30
31 * Overview:: Prelimary information
32 * Commands:: List of supported commands.
33 * Attributes:: List of supported command attributes.
34 * Packet description:: What a RPLAY packet looks like.
35
36 
37 File: RPLAY.info, Node: Overview, Next: Commands, Prev: Top, Up: Top
38
39 Overview
40 ********
41
42 The `RPLAY' protocol uses simple binary UDP packets to control the
43 audio server. Communication between the client and server is one-way -
44 packets are sent to the server and the server *never* replies.
45
46 
47 File: RPLAY.info, Node: Commands, Next: Attributes, Prev: Overview, Up: Top
48
49 Commands
50 ********
51
52 `RPLAY' is based on a small set of commands which are used to
53 control the audio server. These commands are:
54
55 `RPLAY_PLAY'
56 Play a sound.
57
58 `RPLAY_STOP'
59 Stop a sound.
60
61 `RPLAY_PAUSE'
62 Pause a sound.
63
64 `RPLAY_CONTINUE'
65 Continue a sound.
66
67 `RPLAY_PING'
68 Wakeup the server. This command was introduced to solve a problem
69 with TCP clients that are trying to connect to a server that's
70 started by inetd using a UDP port.
71
72 `RPLAY_RESET'
73 Force the server to reset itself. A reset normally involves
74 re-reading all database files, closing all connections, and stops
75 all playing sounds.
76
77 `RPLAY_DONE'
78 Force a sound to be done. In most cases this is the same as
79 `RPLAY_STOP'.
80
81 
82 File: RPLAY.info, Node: Attributes, Next: Packet description, Prev: Commands, Up: Top
83
84 Attributes
85 **********
86
87 Most `RPLAY' commands use attributes to modify their behaviour.
88 These attributes are:
89
90 `RPLAY_COUNT'
91 The number of times to play a sound. The value should be between
92 0 and 255 inclusive. A value of 0 will play the sound forever.
93 The default is RPLAY_DEFAULT_COUNT.
94
95 `RPLAY_LIST_COUNT'
96 The number of times to play a sound list. The value should be
97 between 0 and 255 inclusive. A value of 0 will play the sound
98 forever. The default is RPLAY_DEFAULT_LIST_COUNT.
99
100 `RPLAY_PRIORITY'
101 The priority of a sound. The value should be between
102 RPLAY_MIN_PRIORITY (0) and RPLAY_MAX_PRIORITY (255). The default
103 is RPLAY_DEFAULT_PRIORITY (0).
104
105 `RPLAY_RPTP_FROM_SENDER'
106 Tell the rplay server that it should try to contact the sender's
107 RPTP server to obtain RPLAY_SOUND. This is only used if the rplay
108 server does not already have the sound.
109
110 `RPLAY_RPTP_SERVER'
111 Tell the rplay server which RPTP server should be used to try and
112 obtain RPLAY_SOUND. This is only used if the rplay server does not
113 already have the sound and RPLAY_RPTP_SEARCH is true.
114
115 `RPLAY_RPTP_SEARCH'
116 Tell the rplay server whether or not it should search for
117 RPLAY_SOUND.
118
119 `RPLAY_RPTP_SERVER_PORT'
120 Tell the rplay server which port should be used to contact the RPTP
121 server when using RPLAY_RPTP_SEARCH.
122
123 `RPLAY_SAMPLE_RATE'
124 Play a sound at a specified sample rate. A value of 0 will use the
125 sound's default sample rate. The default value is
126 RPLAY_DEFAULT_SAMPLE_RATE (0).
127
128 `RPLAY_SOUND'
129 The name of a sound.
130
131 `RPLAY_VOLUME'
132 The volume of a sound. The value should be between
133 RPLAY_MIN_VOLUME (0) and RPLAY_MAX_VOLUME (255). The default is
134 RPLAY_DEFAULT_VOLUME (127).
135
136 
137 File: RPLAY.info, Node: Packet description, Prev: Attributes, Up: Top
138
139 Packet description
140 ******************
141
142 RPLAY packets always begin with a RPLAY_ID byte followed by a RPLAY
143 command. (*note Commands::.) The remaining contents is a list of
144 attributes (*note Attributes::.) and their corresponding values. The
145 packet is terminated with the RPLAY_NULL attribute.
146
147 A packet will never contain an attribute that is set to a default
148 value. This feature allows new attributes to be added without breaking
149 old servers and it also makes packets very small.
150
151 Here's an example packet:
152
153 RPLAY_ID RPLAY_PLAY RPLAY_SOUND RPLAY_NULL
154 30 1 5 bogus.au 0
155
156 Note that numbers in RPLAY packets are stored in one byte and strings
157 are always null-terminated. The above example in hexadecimal would be:
158
159 1E 01 05 62 6f 67 75 73 2E 61 75 00 00
160
161
162 
163 Tag Table:
164 Node: Top734
165 Node: Overview1124
166 Node: Commands1425
167 Node: Attributes2252
168 Node: Packet description4129
169 
170 End Tag Table