Raspberry pi - stream with pulseaudio

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
Peppe
Posts: 177
Joined: 2007-01-01 13:16
Location: Sweden , Stockholm

Raspberry pi - stream with pulseaudio

#1 Post by Peppe »

I'm trying to do the following;

Debian Jessie Xfce amd64 desktop --> stream music --> raspberry pi B+ --> Home amplifier
Raspberry pi running the following kernel

Code: Select all

Linux raspberrypi 3.18.11+ #781 PREEMPT Tue Apr 21 18:02:18 BST 2015 armv6l GNU/Linux
I have used this guide;
http://www.ardupi.com/2013/02/use-rpi-a ... -sink.html
Change the following from the guide;

Code: Select all

load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.1.105/24
to

Code: Select all

load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.1.102/24
192.168.1.102= My desktop ipadress.
However, the Raspberry pi don't show up as an output in pulseaudio on my desktop.
Has anyone got this working?
Thanks in advance!
Running Debian Squeeze with xfce4 on a Fujitsu P7120 and a Asus ITX HTPC with Debian Squeeze with xfce4 . Debian just keeps getting better and better .

Peppe
Posts: 177
Joined: 2007-01-01 13:16
Location: Sweden , Stockholm

Re: Raspberry pi - stream with pulseaudio

#2 Post by Peppe »

bump
Running Debian Squeeze with xfce4 on a Fujitsu P7120 and a Asus ITX HTPC with Debian Squeeze with xfce4 . Debian just keeps getting better and better .

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5464
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 21 times
Been thanked: 93 times

Re: Raspberry pi - stream with pulseaudio

#3 Post by dilberts_left_nut »

I tried this a while ago and did get it working (can't recall the specifics sorry) but found it laggy and unreliable. I ended up just running mpd on the box attached to my amp - works really well and has clients for pretty much every platform.
AdrianTM wrote:There's no hacker in my grandma...

runfrodorun
Posts: 202
Joined: 2013-06-19 05:09

Re: Raspberry pi - stream with pulseaudio

#4 Post by runfrodorun »

I tried doing something like this with mpd, and I was trying to play through the local speakers and remote speakers at the same time... big mistake. They phased with each other and the quality in general of the stream was pretty low. 'specially if you're playing video through cable and audio through stream... plus pulse audio is evil and needs to die.

-RJ
Much opinionated.
Some abrasive.
No systemd.
Wow.

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: Raspberry pi - stream with pulseaudio

#5 Post by pylkko »

Here is one way that I have done something similar and had it work very well. First, install mpd/mopidy on the RPi. I have then set up DLNA, mainly because so many phones and other devices have DLNA. Then use a script called "pulseaudio-dlna" on the Debian machine (you have to find the source with google or equivalent). This will then add the RPi as an output device in pavucontrol. Then you can send audio from any program from the computer to the RPi (and thus to the amplifier). There is a latency of about some seconds, so you wouldn't want to watch a film or play a game on it (as the audio would always lag a few seconds compared to the visual content). There are however some videoplayers that can play the audio track of a file in advance in order to compensate for such latency.

In the case that you want a "multiple room" solution, or a solution where audio needs to be played both locally and remotely in sync, then you need to have a look at sometihng called Logitech Media Server and squeezeplayer/plug. There is a RPi ready made image called picoreplayer which essentially boots tiny core linux and a squeeze client. It boots quickly and you can shut it down by pulling the plug on the machine without risking file system corruption (everything is in RAM). Then you can install this on many devices and using the LMS send audio to all those client to be played in sync. IIRC the software was originally something that Logitech developed but then later open sourced it.

Post Reply