📜 ⬆️ ⬇️

Sound over the network

There is a big computer in my house, used mainly as a TV. We look at the cinema on the laptop, because the monitor is not much more, but it is far from the sofa. Therefore, you have to connect headphones or second speakers to the laptop, or crawl under the table and pull the cord out of the computer. I'm tired.

Sound servers in * nix have been around for a long time, arts, esd is a classic. Now deservedly become the standard pulseaudio, in Ubuntu it is installed from release 8.04, and in Fedora from 8.

I liked it because the sound streams of a particular application can be steered with a mouse and on the fly. For pulseaudio there are several gui programs. padevchooser sits in the tray and has unnecessary settings for me - I did not like it. pavuctontrol and paprefs turned out to be enough.

Actually, you can steer the sound in two ways, connect to a non-local pulseaudio, or send a multicast. I chose the second, for it is simpler and the sound can be played on several computers. For example, I have another laptop at home and it will sound too :)
')
In Ubuntu 8.04, everything is already working out of the box, if not, then make sure that the sound server is enabled in “System-> Options-> Sound” and pulse is selected for gstreamer everywhere. At 7.10, you'll need to install several packages: apt-get install pulseaudio. * Paprefs pavucontrol.

On the computers that will receive the sound, we start the paprefs and enable the checkbox “Enable Multicast / RTP receiver”, and on the computer that gives the sound we check the “Enable Multicast / RTP sender” box. Run the player. In the pavucontrol program, we can see the stream of the player, right-click / touchpad on it, and redirect the output to RTP Multicast Sink. Enjoying.

By wi-fi brakes appear very rarely, and it seems, depending on the bitrate. Happy viewing :)

Source: https://habr.com/ru/post/27350/


All Articles