I wonder if there is really a way to create a cross-platform server/client program where you could simply send all audio output from a desktop PC to a homemade Android application which receives the pipe/stream of the sound?

Windows seems to have no easy way to accomplish this without installing third-party or even commercial software (AirPlay is not an option).

The closest I've seen is people using PulseAudio+Icecast, but is this even possible on a Windows box as well? Many Linux users write about it, but it seems there is no real explanation of how to get it done on Windows.

Maybe someone knows a simple VideoLAN/VLC streaming setup (for the streaming/server part) that works like this (Would be too easy wouldn't it?) or another solution.

If it should be used on Windows it should be easy to deploy a complete package which I can put together w/ PulseAudio+Icecast if that really is possible.

  • 1
    So far I have yet to see an actual, answerable question here, at least no more than you have already stated. VLC is a cross-platform app that can stream over a network, write your app to make use of the stream it sends. Here is an example of streaming VLC over a network: wikihow.com/… – MaQleod Jun 20 '12 at 21:25
  • The guide you linked is about .avi and individual files, this is the whole audio output (incl. desktop sounds) – dezza Jun 20 '12 at 21:41

This seems to be solved at this arch thread. You basically streams your alsa output serving and transcoding it to mp3 at the same time with ffmpg. To achieve so you need to:

  1. Load a kernel module, virtual soundcard.
  2. Tell Alsa to use this soundcard with a config file.
  3. Tell ffmpg to listen to this soundcard with another config file.
  4. Start the server.

Then you seem to be capable of playing it simply by connecting to http://your.computer.ip:8090/stream.mp3. Probably works with your browser, but you can try some streaming players such as VLC or MXPlayer on your Android.

  • 1
    Hi and welcome to superuser. To prevent link degradation we ask that posts as answers contain the answer itself (in case the link dies). Whilst this doesn't mean to copy verbatim from the linked source, please consider including some additional information so that someone reading your answer on this site might be able to understand and come to the same conclusion as yourself. – James May 9 '13 at 22:40
  • I've been indenting code by hand for almost ten minutes (four spaces and the following will be code) but doesn't seem to work. code block button doesn't work either. It allwais worked at stackoverflow. I don't understand, and I'm not posting code thats not formated. I think my answer is enough to understand what follows the link. – dinigo May 9 '13 at 23:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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