Antiklesys
Posts: 9
Joined: Thu Sep 27, 2012 7:38 am

RaspberryPi as Audio-Out Server

Wed Feb 20, 2013 11:31 am

Hi,

I have several devices at home and just one set of speakers. I would like to use the RaspberryPi as Audio Out for those. I can easily send the audio stream from my Ipad to the Raspberry via xmbc trough airplay emulation, however I would like the same to happen for my pc and not just trough Itunes.

What I'm looking for is a way to redirect ALL audio outputs of my Windows PC to the Raspberry and have the Raspberry play that audio trough the analog out. This would include video's audio tracks, system sounds and video games sounds.

Anyone has done that or has any advices on what the right way to do such a thing would be?

Thanks,
Alex

KaNa
Posts: 8
Joined: Fri Mar 01, 2013 8:10 pm

Re: RaspberryPi as Audio-Out Server

Sat Mar 02, 2013 4:38 pm

Very interesting idea, let me know and reversely if you found a solution to this question.
I will pursue my researches ...

EDIT: for now, this is the only solution I found : http://rogueamoeba.com/airfoil/windows/ (but not free)

fullhyperion
Posts: 1
Joined: Wed Mar 13, 2013 4:26 pm

Re: RaspberryPi as Audio-Out Server

Wed Mar 13, 2013 4:31 pm

I have tried this using pulseaudio and linux, and after some troubles, it did work. However, the network layer introduced so much latency (1-3 seconds), that it was not usefull for playing the sound of movies and games.

User avatar
jsebean
Posts: 50
Joined: Sun Jan 13, 2013 12:00 am
Location: Atlantic Canada
Contact: Website

Re: RaspberryPi as Audio-Out Server

Sun Mar 17, 2013 6:31 pm

You could use VLC and stream your stereo mix from your PC to the Pi and use VLC on the Pi (sudo apt-get install ffmpeg vlc) to play the stream. The issue however would be latency, but I don't know of any better method, others may?

Spid
Posts: 525
Joined: Sat Jan 19, 2013 12:47 pm

Re: RaspberryPi as Audio-Out Server

Sun Mar 17, 2013 7:16 pm

I will always assume you are running Raspbian for desktop and Raspbmc for XMBC !

wartstew
Posts: 14
Joined: Mon Jun 04, 2012 11:05 pm

Re: RaspberryPi as Audio-Out Server

Sun Apr 21, 2013 5:09 pm

I just started looking at a similar personal project for the Pi: Using "jackaudio" and "netjack".

jackaudio is a low latency audio layer, somewhat similar to pulse audio, that has an available plug in called "netjack" (there are actually two different versions of "netjack", not to be confused with the fact that there are also two different versions of jackaudio itself!), that should be able to provide this functionality as well.

In my case, I'm hoping to implement a wireless digital "audio snake" using two RPi's with Wifi, and two outboard USB audio devices such as "Presonus Audiobox" products (I've successfully used an "Audiobox 1818VSL under Linux and jack in another project).

I just started working on this under Raspbian, where installing "jack" was simply an apt-get away, but can not get jackd to start (actually to stay running) using the built in audio of the RPi. I'll be trying it with some outboard USB audio devices soon, as I am guessing the the RPi audio implementation may not be 100% ALSA compliant.

"Jackaudio" has been ported to other OS's. I once tried getting it running under Windows without success however.

Granted using "jackaudio" may be a more complicated solution than what you want, but it is a very versatile solution as lots of other software play nicely with jack and jack can nicely mix and route audio throughout its "clients" in a manor similar to a traditional physical "patchbay" which is its original intention.

User avatar
AutoStatic
Posts: 326
Joined: Tue Jan 01, 2013 10:27 pm
Contact: Website

Re: RaspberryPi as Audio-Out Server

Mon Apr 22, 2013 11:23 am

JACK from the Raspbian repositories does not work, you need a patched version of JACK: http://wiki.linuxaudio.org/wiki/raspberrypi
RPi and real-time, low-latency audio: http://wiki.linuxaudio.org/wiki/raspberrypi
RPi audio repository: http://rpi.autostatic.com/
RPi and audio blog: https://autostatic.com/tag/raspberrypi/

surfatwork
Posts: 62
Joined: Mon May 06, 2013 8:26 am

Re: RaspberryPi as Audio-Out Server

Wed May 08, 2013 4:15 pm

I have done exactly this using pulseaudio and rygel, but with linux at both ends. rygel on the source (my laptop) is the server (using gstlaunch) and rygel on the pi works as the renderer (or you can use gmediarender).
Doesnt pulse also have a windows version? Not sure if rygel works on that, because it is a gnome fork.

Return to “Advanced users”