Configuring Sound on Linux/Pulse Audio/Remote server

From Wikibooks, open books for an open world
Jump to: navigation, search

RTP[edit]

RTP streams use multicast IP adresses like 224.0.0.56 (default) and UDP datagrams for transport. Multicasts are generally not allowed in Internet (blocked by ISPs). RTP is designed for low latency.

Server[edit]

 $ pactl load-module module-rtp-recv

Client[edit]

VLC 
RTP docs

TCP[edit]

Only uncompressed audio is supported.

Configuring the Server[edit]

This process is rather simple. You will need to load module-native-protocol-tcp. You can optionally specify an auth-ip-acl to permit/blacklist anonymous connections from specific ips or IP ranges (to list more than one, separate by semicolon).

$ pactl load-module module-native-protocol-tcp auth-ip-acl=192.168.1.138

Configuring the Client[edit]

Simply set the environmental variable PULSE_SERVER to the destination and PulseAudio will redirect the stream over tcp to the provided destination.

$ PULSE_SERVER=192.168.1.146 totem