Configuring Sound on Linux/Pulse Audio/Remote server

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

RTP[edit | edit source]

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

Server[edit | edit source]

 $ pactl load-module module-rtp-recv

Client[edit | edit source]

 $ pactl load-module module-rtp-send

TCP[edit | edit source]

Only uncompressed audio is supported.

Configuring the Server[edit | edit source]

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=

Configuring the Client[edit | edit source]

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