Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Results

I want to be able to walk from one room to another and hear the same song playing. Like you do if you were listening to the radio in all rooms.

I want that effect but I want to listen to my own music, can this be done?

Materials

  • Ubuntu laptop.
  • Mac computer.

First alternative

share|improve this question
add comment

4 Answers

Yes, with pulseaudio this can easily be done. You will need to install and run paprefs Install paprefs that makes your sound devices available over the network.

enter image description here

enter image description here

These settings allow both sound sources and sinks to be published over the network, ideally to another pulseaudio server.

In case you have your server setup without desktop manager you will need to install a sound system first (see this question). You can then edit /etc/pulse/default.pa uncommenting these lines in the Network access section:

load-module module-esound-protocol-tcp
load-module module-native-protocol-tcp
load-module module-zeroconf-publish

If you want to use RTP sender uncomment these lines the RTP sender module section:

load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 description="RTP Multicast Sink"
load-module module-rtp-send source=rtp.monitor

The pulseaudio server needs to be started as a daemon with pulseaudio -D in case it's not yet running. For optimizing sound qualitity settings in the /etc/pulse/daemon.conf may be adapted to personal needs.

An alternative method to stream audio in your network would be to setup an Icecast Server (see this question).

share|improve this answer
    
In case of a headless client (say, a Pi with speakers on my kitchen cupboards) it would be useful to know how to set this up completely via config files and/or shell commands. –  Raphael Apr 10 at 10:08
add comment

Your best option is called Music Player Daemon (mpd).

https://secure.wikimedia.org/wikipedia/en/wiki/Music_Player_Daemon

It is a client server application. You store your music on the server, then connect with your clients (lots of people can do it at once) and control the server.

It is already in ubuntu, just apt-get install mpd

And also some good documentation: https://wiki.archlinux.org/index.php/Mpd

MPD can stream music, so you can have lots of clients (or speakers if you so wish to call them) to play the music.

But don't really expect any good quality. Streaming spoils sound badly (no matter if you use mpd or pulseaudio). It's a much better idea to connect real speakers to the server and use the laptops only to control it.

share|improve this answer
1  
Well my house is too big to use wires, that's why I want to stream the sound. –  Alvar Feb 26 '11 at 18:29
    
You can stream, dont worry about quality, it wont matter much, Given your wireless connection is strong enough –  Rahul Prasad Jun 17 '11 at 6:38
add comment

I didnt have to do anything out of the ordinary. I have twin netbooks both with PulseAudio and fairly no name hardware from intel. How I set it up went a little something like this.

run paprefs on both your server and client. On the server, make sure you have have the multicast settings enabled, and the server bits checked. like so enter image description here

and the multicast bit enter image description here

On the client, enable the bit about finding network enabled devices enter image description here and set your output device to the virtual network device via pavucontrol enter image description here

viola you should have some magic now

share|improve this answer
add comment

I'm not sure if something like this can be achieved with DLNA/UPnP since I'm not familiar with it myself, but throwing some links here in case it helps:

Though a quick search result would suggest that it's not possible to sync...

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.