blob: 9d0d26be4b0d85c0dd4f82ac6608eed8da76da01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
.TH SCREAM 1
.SH NAME
screamsend, screamrecv, screamenc, screamdec \- multicast audio protocol
.SH SYNOPSIS
.B audio/screamsend
[
.I interfaceip
]...
.br
.B audio/screamrecv
[
.I interfaceip
]...
.br
.B audio/screamenc
.br
.B audio/screamdec
.SH DESCRIPTION
.PP
Scream is a simple network protocol for transmitting PCM audio on a local network.
It sends UDP packets at a constant rate to the multicast address
.B 239.255.77.77
on port
.BR 4010 .
Each packet starts with a small 5-byte header that contains information about the
sample-rate and data format followed raw PCM data payload (maximum 1157 bytes).
.PP
.I Screamsend
reads PCM audio from
.B /dev/audio
and sends scream packets to the local network on the interface given by
.IR interfaceip.
When
.I interfaceip
is omitted, it uses first IPv4 interface ip address from
.B /net/ipselftab
as a default.
.PP
.I Screamrecv
listens for packets from the local network on the interfaces
selected by
.IR interfaceip
and writes PCM audio to
.BR /dev/audio .
When no
.I interfaceip
addresses where given, it will listen on all interfaces with an IPv4 address.
.PP
Both
.I screamsend
and
.I screamrecv
are usually run after
.I audio/mixfs
(see
.IR audio (1))
to provide loopback audio source as well as mixing for multiple senders.
.PP
.I Screamenc
reads PCM audio from standard-input and writes scream packets to standard-output.
.PP
.I Screamdec
reads scream packets from standard-input, and writes PCM audio to standard-output.
It spawns
.I audio/pcmconv
(see
.IR audio (1))
to convert the audio in case the scream packet format is not
the default of 16-bit little-endian stereo samples at 44100 Hz.
It exits when no packets have arrived for 500 milliseconds.
.SH SOURCE
.B /sys/src/cmd/audio/scream
.SH SEE ALSO
.IR audio (1).
.br
.B https://github.com/duncanthrax/scream
|