Commit | Line | Data |
---|---|---|
9086a105 | 1 | .\" |
c897bb65 | 2 | .\" Copyright (C) 2007-2009 Richard Kettlewell |
9086a105 | 3 | .\" |
e7eb3a27 | 4 | .\" This program is free software: you can redistribute it and/or modify |
9086a105 | 5 | .\" it under the terms of the GNU General Public License as published by |
e7eb3a27 | 6 | .\" the Free Software Foundation, either version 3 of the License, or |
9086a105 | 7 | .\" (at your option) any later version. |
e7eb3a27 RK |
8 | .\" |
9 | .\" This program is distributed in the hope that it will be useful, | |
10 | .\" but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | .\" GNU General Public License for more details. | |
13 | .\" | |
9086a105 | 14 | .\" You should have received a copy of the GNU General Public License |
e7eb3a27 | 15 | .\" along with this program. If not, see <http://www.gnu.org/licenses/>. |
9086a105 RK |
16 | .\" |
17 | .TH disorder-playrtp 1 | |
18 | .SH NAME | |
19 | disorder-playrtp \- play DisOrder network broadcasts | |
20 | .SH SYNOPSIS | |
0d350ff0 | 21 | .B disorder\-playrtp |
9086a105 | 22 | .RI [ OPTIONS ] |
0d350ff0 | 23 | .RB [ \-\- ] |
c897bb65 | 24 | .RI [[ ADDRESS ] |
18e5cbdc | 25 | .IR PORT ] |
9086a105 | 26 | .SH DESCRIPTION |
0d350ff0 | 27 | \fBdisorder\-playrtp\fR plays a network broadcast sent from the specified |
9086a105 | 28 | address. |
f2a6202f | 29 | .PP |
c897bb65 | 30 | If neither an address nor port are specified then the local DisOrder |
6fba990c RK |
31 | configuration is consulted to find the server and the server is asked where the |
32 | RTP stream is. | |
33 | .PP | |
34 | If just a port is specified then the RTP stream is assumed to be unicast or | |
35 | broadcast to that port. | |
36 | .PP | |
c897bb65 RK |
37 | If an address and a port are specified then the RTP stream is assumed to be |
38 | multicast to that group address and port. | |
9086a105 | 39 | .SH OPTIONS |
b6579a61 RK |
40 | The default sound API is the first of the ones listed below that are available. |
41 | Usually this implies ALSA under Linux and Core Audio under OS X. | |
42 | .TP | |
e979b844 | 43 | .B \-\-alsa\fR, \fB\-a |
b6579a61 | 44 | Use ALSA to play sound. |
e979b844 | 45 | Only available on Linux. |
b6579a61 | 46 | .TP |
0d350ff0 | 47 | .B \-\-oss\fR, \fB\-o |
b6579a61 | 48 | Use OSS to play sound. |
e979b844 | 49 | Only available on Linux and FreeBSD. |
b6579a61 | 50 | .TP |
0d350ff0 | 51 | .B \-\-core\-audio\fR, \fB\-c |
b6579a61 | 52 | Use Core Audio to play sound. |
e979b844 | 53 | Only available on Macs. |
9086a105 | 54 | .TP |
0d350ff0 | 55 | .B \-\-device \fIDEVICE\fR, \fB\-D \fIDEVICE\fR |
c0c23a60 | 56 | Specifies the audio device to use. |
f5fd9a6b RK |
57 | See |
58 | .B "DEVICE NAMES" | |
59 | below for more information. | |
9086a105 | 60 | .TP |
e979b844 RK |
61 | .B \-\-command \fICOMMAND\fR, \fB-e \fICOMMAND\fR |
62 | Instead of sending to a physical audio device, invoke \fICOMMAND\fR using the | |
63 | shell and write audio samples to its standard input. | |
64 | Currently the input will be 44100KHz 16-bit signed stereo samples. | |
65 | If \fICOMMAND\fR exits it is re-executed; any samples that had been written to | |
66 | the pipe but not processed by the previous instance will be lost. | |
67 | .IP | |
68 | .B \-\-device | |
c4e0bd8e | 69 | is redundant with this option, but you might want to set |
287ad384 | 70 | .BR \-\-pause\-mode . |
e979b844 RK |
71 | .IP |
72 | As an example, | |
73 | .B "-e \(aqcat > dump\(aq" | |
74 | would log audio data to a file for later processing. | |
75 | You could convert it to another format with, for instance: | |
76 | .IP | |
77 | .B "sox -c2 -traw -r44100 -s -w dump dump.wav" | |
78 | .TP | |
287ad384 RK |
79 | .B \-\-pause\-mode \fIMODE\fR, \fB-P \fIMODE |
80 | Set the pause mode for \fB\-\-command\fR to either \fBsilence\fR (the default), in | |
81 | which pauses are represented by sending silent samples, or \fBsuspend\fR, in which | |
82 | writes to the subprocess are suspended, requiring it to infer a pause from flow | |
83 | control. | |
84 | .TP | |
0d350ff0 | 85 | .B \-\-config \fIPATH\fR, \fB\-C \fIPATH |
c0c23a60 RK |
86 | Set the configuration file. |
87 | The default is | |
b6579a61 RK |
88 | .IR pkgconfdir/config . |
89 | .TP | |
0d350ff0 | 90 | .B \-\-socket \fIPATH\fR, \fB\-s \fIPATH |
c0c23a60 RK |
91 | Set the control socket. |
92 | Normally this would not be used manually. | |
b6579a61 | 93 | .TP |
0d350ff0 | 94 | .B \-\-help\fR, \fB\-h |
f2a6202f RK |
95 | Display a usage message. |
96 | .TP | |
0d350ff0 | 97 | .B \-\-version\fR, \fB\-V |
f2a6202f RK |
98 | Display version number. |
99 | .SS "Buffer Control Options" | |
100 | You shouldn't need to use these options. | |
7edc7e42 | 101 | Their effects are subject to change between version without warning. |
0e72bf84 | 102 | You should consult the source code for details of their effects. |
f2a6202f | 103 | .TP |
0d350ff0 | 104 | .B \-\-min \fIFRAMES\fR, \fB\-m \fIFRAMES\fR |
c0c23a60 | 105 | Specifies the buffer low watermark in frames. |
7edc7e42 | 106 | This also acts as the target buffer occupancy. |
9086a105 | 107 | .TP |
0d350ff0 | 108 | .B \-\-max \fIFRAMES\fR, \fB\-x \fIFRAMES\fR |
c0c23a60 RK |
109 | Specifies the maximum buffer size in frames. |
110 | If there are this many frames in the buffer then reading from the | |
111 | network socket will be suspended. | |
0e72bf84 | 112 | The default is twice the \fB\-\-min\fR value. |
9086a105 | 113 | .TP |
0d350ff0 | 114 | .B \-\-rcvbuf \fIBYTES\fR, \fB\-R \fIBYTES\fR |
c0c23a60 | 115 | Specifies socket receive buffer size. |
0e72bf84 RK |
116 | The default is not to change the buffer size, i.e. you get whatever the |
117 | local operating system chooses. | |
c0c23a60 | 118 | The buffer size will not be reduced below the operating system's default. |
7edc7e42 RK |
119 | .TP |
120 | .B \-\-monitor\fR, \fB\-M | |
121 | Periodically report how close to the buffer low watermark the buffer is. | |
122 | If you have trouble with poor playback quality, enable this option to see if | |
123 | the buffer is emptying out (or overfilling, though there are measures to | |
124 | prevent that from happening). | |
b6579a61 RK |
125 | .SH "REMOTE CONTROL" |
126 | The | |
0d350ff0 | 127 | .B \-\-socket |
b6579a61 | 128 | option is used by Disobedience to control a background |
0d350ff0 | 129 | .B disorder\-playrtp |
c0c23a60 RK |
130 | daemon. |
131 | The socket will be created as a UNIX domain stream socket. | |
132 | When a connection is received a single line is read from it. | |
133 | The following commands are known: | |
b6579a61 RK |
134 | .TP |
135 | .B stop | |
136 | Causes | |
0d350ff0 | 137 | .B disorder\-playrtp |
b6579a61 RK |
138 | to terminate. |
139 | .TP | |
140 | .B query | |
141 | Causes the string "running" to be sent back. | |
142 | .PP | |
c0c23a60 RK |
143 | Other commands are ignored. |
144 | After the first command the connection is closed. | |
b6579a61 RK |
145 | Only one connection at a time will be serviced. |
146 | .PP | |
147 | This protocol is not guaranteed to be stable. | |
f5fd9a6b RK |
148 | .SH "DEVICE NAMES" |
149 | .SS "Core Audio" | |
150 | On a Mac, the device name can either be the human-readable name of the desired | |
151 | output or its UID. | |
152 | To get a list of the human-readable names, visit System Preferences -> Sound; | |
153 | the Type column has the name you want. | |
154 | .PP | |
155 | For example, you might use "Built-in Output" for the built-in speaker | |
156 | or "Built-in Line Output" if you have connected external speakers. | |
157 | Remember to quote the name. | |
9086a105 | 158 | .SH "SEE ALSO" |
b6579a61 | 159 | .BR disobedience (1), |
9086a105 RK |
160 | .BR disorder_config (5), |
161 | .BR disorderd (8) | |
162 | .\" Local Variables: | |
163 | .\" mode:nroff | |
164 | .\" fill-column:79 | |
165 | .\" End: |