Debian Codegraph @

doc/RPLAY.info

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