Debian Codegraph @

doc/rplayd.8

raw ◀ ▶
1 Debian patch touch this file
1 .TH RPLAYD 8 6/29/98
2 .SH NAME
3 rplayd \- rplay sound server
4 .SH SYNOPSIS
5 .B rplayd [options]
6 .SH DESCRIPTION
7 .B rplayd
8 is the sound server for the rplay audio system. The server listens
9 for requests to play, pause, continue, and stop sounds using both the
10 RPLAY and RPTP protocols. Normally RPLAY requests are received on
11 port 5555/udp and RPTP on 5556/tcp. (Older ports 55555/udp and
12 55556/tcp are also supported) Access to the server is restricted using
13 the
14 .I rplay.hosts
15 file.
16 .P
17 rplayd can be started during the system boot process, via inetd, or by
18 individual users. root access may be required depending on audio
19 device permissions.
20 .P
21 In most causes rplayd will play sounds that are available on the local
22 disk. However, rplayd can be sent sounds via the network and rplayd
23 can also contact other rplayds to share sound files. The index of
24 all the local sound files is stored in
25 .I rplay.conf
26 and remote rplayds are specified in
27 .I rplay.servers.
28 Sounds received from other rplayds will be stored in a cache directory
29 normally located in
30 .I /tmp/.rplay-cache.
31 Cache entries are expired on an LRU basis.
32 .P
33 Many sound file formats are supported by rplayd. These include:
34 .nf
35
36 AU AIFF WAV VOC UB UL
37 G.721 4-bit, G.723 3-bit, G.723 5-bit
38 GSM
39
40 .fi
41 .P
42 Other formats can be played using external helper applications
43 which convert unknown file formats to CD quality data which
44 can then be played by rplayd. See rplay.helpers(5)
45 .P
46 Several sounds can be played at once and sounds can be played at any
47 sample rate. rplayd can be configured to output many different
48 formats using the various \-\-audio options.
49 .P
50 On some systems, namely Solaris and Linux, rplayd can read sounds
51 directly from CDROM using CDDA. The special sound name
52 .I cdrom:
53 will play the entire CDROM.
54 .I cdrom:3-5
55 will play tracks 3 through 5.
56 .SH OPTIONS
57 .TP
58 .I "\-A DEVICE, \-\-audio\-device=DEVICE"
59 Use DEVICE for the audio device (/dev/dsp).
60 .TP
61 .I "\-B N, \-\-audio\-bits=N"
62 Audio device bits per sample, 8 or 16.
63 .TP
64 .I "\-\-audio\-channels=N"
65 Number of audio channels to use, 1 == mono, 2 == stereo.
66 .TP
67 .I "\-c N, \-\-audio\-close=N"
68 Close /dev/dsp after N idle seconds, disabled with 0 (5).
69 .TP
70 .I "\-F N, \-\-audio_flush=N"
•71 Flush /dev/dsp after N idle seconds, disabled with 0 (\-1).
72 N = \-1 : flush when spool is empty.
73 N = \-2 : flush after each audio write. (not recommended)
74 N should be <= to the audio close timeout.
75 .TP
76 .I "\-\-audio\-format=FORMAT"
77 Tell rplayd to write audio data using FORMAT, where FORMAT
78 can be ulaw, linear-8, ulinear-8, linear-16, or ulinear-16.
79 (linear = signed, ulinear = unsigned)
80 .TP
81 .I "\-\-audio\-fragsize=N"
82 Audio fragment size (0). The default size is zero which lets
83 the audio driver pick the "best" size. The size specified must
84 be a power of 2 greater than 16. Example: 256, 1024, 4096.
85 .TP
86 .I "\-\-audio\-info=INFO, \-\-info=INFO, \-i INFO"
87 Specify complete audio device information with one option.
88 INFO is of the form: format,sample-rate,bits,channels
89 Examples: `ulaw,8000,8,1' and `linear-16,44100,16,2'
90 Also provided are:
•91 \-\-audio\-info\-ulaw, \-\-info\-ulaw \-> ulaw,8000,8,1
92 .TP
93 .I "\-\-audio\-match"
94 Attempt to match the sample rate of the audio device with
95 the sample rate of the current sound when no other sounds
•96 are playing. If the match fails, \-\-audio\-sample\-rate is used.
97 This option overrides \-\-audio\-bufsize.
98 .TP
99 .I "\-\-audio\-port=PORT[,PORT...]"
100 Output audio to the specified audio port(s).
101 Valid ports are `speaker', `headphone', and `lineout'.
102 Multiple ports can be specified using `speaker,headphone,lineout'
103 .TP
104 .I "\-r N, \-\-audio\-rate=N"
105 Write the audio buffer N times per second (0).
106 .TP
107 .I "\-R N, \-\-audio\-sample\-rate=N"
108 Sample rate of the audio device.
109 .TP
110 .I "\-\-auth"
111 Enable host access authentication.
112 .TP
113 .I "\-D DIR, \-\-cache\-directory=DIR"
114 Use DIR for rplay.cache (/tmp/.rplay-cache).
115 .TP
116 .I "\-\-cache\-remove"
117 Remove the cache directory and all its contents when rplayd exists.
118 .TP
119 .I "\-s N, \-\-cache\-size=N"
120 Maximum size in bytes of the rplay cache, disabled with 0 (8388608).
121 .TP
122 .I "\-\-cdrom0=DEVICE, \-\-cdrom1=DEVICE, \-\-cdrom2=DEVICE, \-\-cdrom3=DEVICE"
123 Specify the cdrom[0-3] to DEVICE mapping. For Solaris 2.x the default
124 mapping is cdrom[0-3] -> /vol/dev/aliases/cdrom[0-3].
125 Linux uses cdrom[0-3] -> /dev/cdrom[0-3].
126 .TP
127 .I "\-C FILE, \-\-conf=FILE"
128 Use FILE for rplay.conf (/etc/rplay/rplay.conf).
129 .TP
130 .I "\-T N, \-\-connection\-timeout=N"
131 Close idle RPTP connections after N seconds, disabled with 0 (300).
132 .TP
133 .I "\-d, \-\-debug"
134 Enable debug mode.
135 .TP
136 .I "\-f HOST, \-\-forward=HOST"
137 Forward all RPLAY packets to HOST.
138 .TP
139 .I "\-\-fork"
140 Enable backgrounding rplayd at startup. (enabled)
141 .TP
142 .I "\-\-group=GROUP"
143 Run with GROUP privs. (audio)
144 .TP
145 .I "\-\-help"
146 Display helpful information.
147 .TP
148 .I "\-\-helpers=FILE"
149 Use FILE for rplay.helpers (/etc/rplay/rplay.helpers).
150 .TP
151 .I "\-H FILE, \-\-hosts=FILE"
152 Use FILE for rplay.hosts (/etc/rplay/rplay.hosts).
153 .TP
154 .I "\-\-inetd"
155 Enable inetd mode. (disabled)
156 .TP
157 .I "\-L FILE, \-\-log\-file=FILE"
158 Use file for rplay.log (/tmp/rplay.log).
159 .TP
160 .I "\-l N, \-\-log\-level=N"
161 Use logging level N where 0 <= n <= 4.
162 .TP
163 .I "\-\-memory\-cache\-size=N"
164 Maximum size in bytes of the memory cache, disable caching with 0 (4194304).
165 .TP
166 .I "\-\-memory\-cache\-sound\-size=N"
167 Maximum size in bytes of a sound that can be cached in memory.
168 A value of 0 means to try and cache all sounds. (2097152)
169 .TP
170 .I "\-N, \-\-no\-audio"
171 Disable audio, RPTP file server mode.
172 .TP
173 .I "\-\-no\-auth"
174 Disable host access authentication.
175 .TP
176 .I "\-n, \-\-no\-inetd"
177 Disable inetd mode. (disabled)
178 .TP
179 .I "\-\-no\-fork"
180 Disable backgrounding rplayd at startup. (enabled)
181 .TP
182 .I "\-\-options\-file=FILE"
183 Read rplayd options from FILE.
184 .TP
185 .I "\-\-port=PORT, \-\-rplay\-port=PORT"
186 Use PORT as the RPLAY/UDP port. (5555)
•187 (\-\-other\-rplay\-port may also be available)
188 .TP
189 .I "\-\-rptp\-port=PORT"
190 Use PORT as the RPTP/TCP port. (5556)
•191 (\-\-other\-rptp\-port may also be available)
192 .TP
193 .I "\-S FILE, \-\-servers=FILE"
194 Use FILE for rplay.servers (/etc/rplay/rplay.servers).
195 .TP
196 .I "\-t N, \-\-timeout=N"
197 Exit after N idle seconds, disabled with 0 (0).
198 .TP
199 .I "\-\-user=USER"
200 Run with USER privs. (nobody)
201 .TP
202 .I "\-v, \-\-version"
203 Print the rplay version and exit.
204 .SH FILES
205 .nf
206 ~/.rplaydrc
207 /tmp/.rplay-cache
208 /usr/local/etc/rplay.conf
209 /usr/local/etc/rplay.helpers
210 /usr/local/etc/rplay.hosts
211 /usr/local/etc/rplay.servers
212 .fi
213 .SH SEE ALSO
214 .IR rplay.conf (5),
215 .IR rplay.helpers (5),
216 .IR rplay.hosts (5),
217 .IR rplay.servers (5),
218 .IR rplay (1),
219 .IR rptp (1)