• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

sending sound to another computer

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

nd4spdbh2

Member
Joined
Nov 15, 2005
Location
Camarillo, CA!
Ok heres the deal i have just built a multi purpose server and its hooked up via 5.1 analog to my reciever upstairs. N e ways is there any way i can transmit the sound signal over lan (wireless in this case) to that computer. Sorta like the opposite of remote desktops option to bring sound to the computer , i want to send it out to the lil server so i can have surround sound and be able to change songs on my main rig.

it would be friggin awsome if i could do this.
 
Your post was a little unclear.

You have a server which is hooked up to a sound system. You also have a workstation in another part of the house. You want music on your workstation to come out of the sound system which hooked up to the server?
 
Last edited:
amazon10x said:
Your post was a little unclear.

You have a server which is hooked up to a sound system. You also have a workstation in another part of the house. You want music on your workstation to come out of the sound system which hooked up to the server?


bingo and i would like it done over the lan if possible.
 
You sure can. I currently do this (minus the remote control part; I just change the songs on the player since I'm logged in with LogMeIn.com; but, we can work out remote control of the player through a browser)

To do this, we are going to use the foobar2k media player (greatest media player ever. for audio only; not video. When you first launch it you will be surprised. It is not designed to look pretty like Winamp. However, it isn't ugly, either). Get the latest version from http://www.foobar2000.org. At the time of this writing, it is version 0.9.4.2 (I am running 0.9.4.1 and am writing the directions from this standpoint but things should be the same. If you run into any differences, tell me). So, download foobar2k and install it to whatever directory suits you.

Now we need oddcast. Get that from http://www.oddsock.org/tools/oddcastv3. We need the version for foobar (at the time of this writing, latest oddcast version for foobar is 3.1.15. I don't know what version I have. If there are significant differences, let me know.). Download and install it.

Now get icecast from http://www.icecast.org. You want the windows setup (as of this writing, latest version is 2.3.1. I don't know what version I have). Install after you download it.

You'll also want columns_ui. This is an alternative UI for foobar. Despite it being alternative, it is hands down better than the default so just go ahead and get it. Link is http://yuo.be/columns.php (version as of this writing, 0.1.3 beta 1v7. I don't know what version I have). It is a 7z file; use 7-Zip or WinRAR to extract it into the components directory of your foobar2k directory.

Start foobar and select columns_UI from the list of UIs. Now navigate to File | Preferences and maximize the Playback group on the left and select DSP Manager. Select Oddcast V3 from the list on the right and move it to the active DSPs. Save and close the preferences.

Navigate to the directory where you installed Icecast and rename icecast.xml to icecast.xml.bak. Now make a new icecast.xml file and put the following in it
Code:
<!-- This config file contains a minimal set of configurable parameters,
     and mostly just contains the things you need to change.  We created
     this for those who got scared away from the rather large and heavily
     commented icecast.xml.dist file. -->
<icecast>
    <limits>
        [COLOR="#00ff00"]<sources>5</sources>[/COLOR]
    </limits>
    <authentication>
[COLOR="#00ff00"]        <source-password>CHANGETHIS</source-password>
        <relay-password>CHANGETHIS</relay-password>
        <admin-user>CHANGETHIS</admin-user>
        <admin-password>CHANGETHIS</admin-password>[/COLOR]
    </authentication>
    <directory>
        <yp-url-timeout>15</yp-url-timeout>
        <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
    </directory>
[COLOR="#00ff00"]    <hostname>your.host.comp.ip.address</hostname>[/COLOR]
    <listen-socket>
        <port>8000</port>
    </listen-socket>
    <fileserve>1</fileserve>
    <paths>
        <logdir>./logs</logdir>
        <webroot>./web</webroot>
        <adminroot>./admin</adminroot>
        <alias source="/" dest="/status.xsl"/>
    </paths>
    <logging>
        <accesslog>access.log</accesslog>
        <errorlog>error.log</errorlog>
      	<loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
    </logging>
</icecast>

I've highlighted the things you need to/should change. The sources line is the amount of sources which can be used. I have mine set to five because I stream the same songs at four different qualities. I have it set to five incase I want to add another. I stream four different qualities because my school connection where I listen is very dependent on the number of lusers using myspace in the library. So, on good days I can listen at 128Kbps and on bad days I listen at 48Kbps (sometimes even 32Kbps!) If you are just streaming to your LAN then speed shouldn't be a problem so you could just stream one high quality version.

Now that we are done with the log file, save it. Now start Icecast and press "Start server." Now go to foobar2k and play a song. A new dialog will popup (if you don't see it try minimizing all of your windows. The oddcast window doesn't have a tray identifier). Select the "Add Encoder" button and double-click on the new line created in the box below the button.

(The following are directions for streaming MP3s. If you need to stream something else tell me. The settings will be different) First set the Encoder Type (about halfway down the page) to MP3 Lame. Set the bitrate to whatever you prefer, samplerate to 44100, Channels to 2. I don't know what "joint stereo" does but it defaults to on so I would leave it that way. Set your server type to Icecast and your Server IP to "localhost". Set your port to 8000. Change the Encoder Password to whatever you set <source-password> to in the icecast.xml config. Change your Mountpoint to something such as "/mylanmusic". Do not end it with an extension. At the top of the config window click YP Settings. You can change the Stream Name and other options here which will change the way it shows up in whatever music player you connect with. However, ensure you uncheck the box Public Server unless you are paying the appropriate broadcast fees. If you leave the box checked, your server will be listed in a public directory of online radio stations and people will connect to it (unless you bind to a specific interface; more on that later). Despite all the boxes being grayed out when you uncheck "Public Server", the info will still apply when you connect to the server. Press OK to save the settings.

Now, play a song in foobar and press Connect on the Oddcast window. The Transfer Rate of the Encoder we just finished setting up should change from Disconnected to Connected.

Now you can connect to your music from another computer by typing into a browser window "http://ipaddress/mylanmusic.m3u". Notice that when typing it into the browser we put in .m3u at the end of whatever you specified as the mountpoint. If all worked as planned, a music player should open and play whatever is being played on the server.

Now you need to get the remote control plugin for foobar. You can find it at http://foobar.daychanged.com. Latest version as of this writing is 1.1. I tested version 1.1 and it worked. The link at the top is a direct link to the dll file. Save it in the components directory of foobar.

Open foobar and navigate to File | Preferences and maximize Tools on the left and select HTTP Writer. Default options are fine. Click "Start service" and check the auto start box if you don't want to do this step everytime you start foobar. You can now go to your other computer and use the command
Code:
http://ipaddress:<port>?cmd=<command>
to control the server where <port> is 4800 unless you changed it, <command> is start, stop, pause, next, previous, or random. There is a nifty little app that is supposed to make it where you don't have to type that in but it didn't work for me. You can code up a little HTML page with these links in it so you don't have to type it in all the time.

If I have enough free time I may write a simple C application which will control it. But probably not.

Okay, that is all. If you have any problems just post back here. Also, you may need to forward the appropriate ports. If you do they will probably be port 8000 and 4800.

If you notice any errors in this post please point it out so I can edit it to make it better for future reference.
 
Last edited:
Speciale said:
Why make it so complicated?

Why not just network the music files?
ya kno i could do that very very easily... but it would be really cool if i could play a mp3 in windows media and have it play on the 5.1 setup... im sure there is a very easy way to do this... cus the above way is way to complicated. LOL!
 
The above method is not complicated. It only looks it because I have verbosely annotated the methods. You simply install a few programs (from installers, they're not even zip files), extract two (?) files, copy and paste some text and then press few buttons. Lots of text doesn't mean something is complicated.
 
I hear both points... when something is familiar it is not diffucult especially when it hand held like that,

However.. doesnt VLC have a really simple networking function? I have only heard of it. I dont like VLC its too linux for me (IE UGLY)
 
Here's a nice pretty version delineated into 10 easy steps. All links are directly to the files you need so you won't even have to look at another webpage. I've removed all the extra drivel which actually explained what was happening. Rest assured you can follows these steps and have a working streaming server without having a clue how or why it works.

1. Get foobar2k and install it http://www.foobar2000.org/foobar2000_0.9.4.2.exe

2. Get Oddcast and install it (during install select all component boxes) http://www.oddsock.org/tools/oddcastv3/oddcastv3_foobar_3.1.15.exe

3. Get Icecast and install it http://downloads.xiph.org/releases/icecast/icecast2_win32_v2.3.1_setup.exe

4. Download http://yuo.be/download/foo_ui_columns-0.1.3-beta1v7.7z and extract to C:/Program Files/foobar2000/components

5. Get the remote control plugin for foobar http://www.abo.fi/~ernylund/foobar/foo_write_http.dll. Save this file in C:/Program Files/foobar2000/components

6. Start foobar. Select columns_UI from the list which opens. Go to File | Preferences maximize the Playback group on the left and select DSP Manager. Add Oddcast V3 as an active DSPs. Also, maximize Tools and select HTTP Writer. Press "Start service" and check "Start automatically".

7. Navigate to G:\Program Files\Icecast2 Win32 Open icecast.xml and erase everything in it and paste the following into it. Change the passwords and IP which are bolded.

Code:
<!-- This config file contains a minimal set of configurable parameters,
     and mostly just contains the things you need to change.  We created
     this for those who got scared away from the rather large and heavily
     commented icecast.xml.dist file. -->
<icecast>
    <limits>
        <sources>5</sources>
    </limits>
    <authentication>
[COLOR="#00ff00"]        <source-password>CHANGETHIS</source-password>
        <relay-password>CHANGETHIS</relay-password>
        <admin-user>CHANGETHIS</admin-user>
        <admin-password>CHANGETHIS</admin-password>[/COLOR]
    </authentication>
    <directory>
        <yp-url-timeout>15</yp-url-timeout>
        <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
    </directory>
[COLOR="#00ff00"]    <hostname>your.host.comp.ip.address</hostname>[/COLOR]
    <listen-socket>
        <port>8000</port>
    </listen-socket>
    <fileserve>1</fileserve>
    <paths>
        <logdir>./logs</logdir>
        <webroot>./web</webroot>
        <adminroot>./admin</adminroot>
        <alias source="/" dest="/status.xsl"/>
    </paths>
    <logging>
        <accesslog>access.log</accesslog>
        <errorlog>error.log</errorlog>
      	<loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
    </logging>
</icecast>

8. Start Icecast and press "Start server." Go to foobar2k and play a song. Oddcast will popup (if you don't see it try minimizing all of your windows). Select the "Add Encoder" button and double-click on the new line created in the box below the button.

Set the options as follows:
Code:
Bitrate              128
Samplerate           44100
Channels             2
Encoder Type         MP3 Lame
Server Type          Icecast2
Server IP            localhost
Server Port          8000
Encoder password     whatever you set for sources-password in the config file
Mountpoint           /mylanmusic

9. Go to YP Settings and uncheck Public Server. Press OK.

10. Play a song in foobar and press Connect on the Oddcast window. The Encoder should now say Connected

You can now connect to your music from another computer by typing into a browser window "http://ipaddress/mylanmusic.m3u".

Use following commands in browser to control music
Code:
http://ipaddress:4800?cmd=start
http://ipaddress:4800?cmd=stop
http://ipaddress:4800?cmd=pause
http://ipaddress:4800?cmd=next
http://ipaddress:4800?cmd=previous
http://ipaddress:4800?cmd=random
 
amazon10x said:
Here's a nice pretty version delineated into 10 easy steps. All links are directly to the files you need so you won't even have to look at another webpage. I've removed all the extra drivel which actually explained what was happening. Rest assured you can follows these steps and have a working streaming server without having a clue how or why it works.

1. Get foobar2k and install it http://www.foobar2000.org/foobar2000_0.9.4.2.exe

2. Get Oddcast and install it (during install select all component boxes) http://www.oddsock.org/tools/oddcastv3/oddcastv3_foobar_3.1.15.exe

3. Get Icecast and install it http://downloads.xiph.org/releases/icecast/icecast2_win32_v2.3.1_setup.exe

4. Download http://yuo.be/download/foo_ui_columns-0.1.3-beta1v7.7z and extract to C:/Program Files/foobar2000/components

5. Get the remote control plugin for foobar http://www.abo.fi/~ernylund/foobar/foo_write_http.dll. Save this file in C:/Program Files/foobar2000/components

6. Start foobar. Select columns_UI from the list which opens. Go to File | Preferences maximize the Playback group on the left and select DSP Manager. Add Oddcast V3 as an active DSPs. Also, maximize Tools and select HTTP Writer. Press "Start service" and check "Start automatically".

7. Navigate to G:\Program Files\Icecast2 Win32 Open icecast.xml and erase everything in it and paste the following into it. Change the passwords and IP which are bolded.

Code:
<!-- This config file contains a minimal set of configurable parameters,
     and mostly just contains the things you need to change.  We created
     this for those who got scared away from the rather large and heavily
     commented icecast.xml.dist file. -->
<icecast>
    <limits>
        <sources>5</sources>
    </limits>
    <authentication>
[COLOR="#00ff00"]        <source-password>CHANGETHIS</source-password>
        <relay-password>CHANGETHIS</relay-password>
        <admin-user>CHANGETHIS</admin-user>
        <admin-password>CHANGETHIS</admin-password>[/COLOR]
    </authentication>
    <directory>
        <yp-url-timeout>15</yp-url-timeout>
        <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
    </directory>
[COLOR="#00ff00"]    <hostname>your.host.comp.ip.address</hostname>[/COLOR]
    <listen-socket>
        <port>8000</port>
    </listen-socket>
    <fileserve>1</fileserve>
    <paths>
        <logdir>./logs</logdir>
        <webroot>./web</webroot>
        <adminroot>./admin</adminroot>
        <alias source="/" dest="/status.xsl"/>
    </paths>
    <logging>
        <accesslog>access.log</accesslog>
        <errorlog>error.log</errorlog>
      	<loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
    </logging>
</icecast>

8. Start Icecast and press "Start server." Go to foobar2k and play a song. Oddcast will popup (if you don't see it try minimizing all of your windows). Select the "Add Encoder" button and double-click on the new line created in the box below the button.

Set the options as follows:
Code:
Bitrate              128
Samplerate           44100
Channels             2
Encoder Type         MP3 Lame
Server Type          Icecast2
Server IP            localhost
Server Port          8000
Encoder password     whatever you set for sources-password in the config file
Mountpoint           /mylanmusic

9. Go to YP Settings and uncheck Public Server. Press OK.

10. Play a song in foobar and press Connect on the Oddcast window. The Encoder should now say Connected

You can now connect to your music from another computer by typing into a browser window "http://ipaddress/mylanmusic.m3u".

Use following commands in browser to control music
Code:
http://ipaddress:4800?cmd=start
http://ipaddress:4800?cmd=stop
http://ipaddress:4800?cmd=pause
http://ipaddress:4800?cmd=next
http://ipaddress:4800?cmd=previous
http://ipaddress:4800?cmd=random

hmm so im taking that this is controling play back functions like start stop... over the lan with a media play ON the audio host computer... see what i would like to do is take the audio from my "client" computer and make it play on the "hosts" coputers sound card.... i think Windows Media Encoder can do what im trying to to... ill talk a look into that.
 
Also, I looked at the VLC feature mentioned by Neur0mancer. It can definitely stream (can stream videos, too) but it looks like it may be only be able to stream to another VLC player. This brings in a problem if you hop onto someone else's computer and want to turn on some music. However, this may not be the case, I do not know; I have never used it.
 
nd4spdbh2 said:
see what i would like to do is take the audio from my "client" computer and make it play on the "hosts" coputers sound card.... i think Windows Media Encoder can do what im trying to to... ill talk a look into that.

What this setup will do:

Setup a media player and streamer on computer A.

Computer B can connect to the stream being played on computer A and play it on its (computer B) own speakers.

You can control playback from computer A directly with the media player

Or, you can control playback from any computer on the network using the commands at the end of my last post.

So, the computer with all the music physically on it is where you would install all of that stuff. The computer you want to listen with just connects to the stream with any generic audio player (windows media player works fine)
 
this is what im trying to acomplish... i have played with windows media encoder to get TV on my pda... PRETTY SWEET if you ask me.
 
ok i got it workign just like i wanted it to... but now when im playing the stream with windows media player my subwoffer channel doesnt output anything... this is using a SB Live 5.1 that will do full surround sound including subwoffer while using the line in but using windows media player it refuses to send a signal to the LFE... how do i send it there i would like sum thump ya kno lol.
 
You guys are losing me here. Why can't you just send the file through the network and have the second computer play the files locally...i don't really understand the need to make this all complicated.

Does the second computer lack input devices or something?

www.itunes.com
www.musicmatch.com
www.winamp.com

These are the three popular players, they are pretty much all free, and they can all read off of a network drive.

Problem solved.

I can understand the desire to be a nerd and make things work in an abstract way, i spent a summer pumping my AC into my case so i could get another 250mhz out of my Barton. But this to me is like keeping that AC on in the winter...simplicity is not always a bad thing.
 
Speciale said:
You guys are losing me here. Why can't you just send the file through the network and have the second computer play the files locally...i don't really understand the need to make this all complicated.

Does the second computer lack input devices or something?

www.itunes.com
www.musicmatch.com
www.winamp.com

These are the three popular players, they are pretty much all free, and they can all read off of a network drive.

Problem solved.

I can understand the desire to be a nerd and make things work in an abstract way, i spent a summer pumping my AC into my case so i could get another 250mhz out of my Barton. But this to me is like keeping that AC on in the winter...simplicity is not always a bad thing.

He doesnt want to run the file on the other computer.. put simply he is trying to network his 5.1 speakers... :)

OP You might not be getting the 5.1 effect if the source isnt playing at 5.1 (IE dont have that option on original machine?) Just a thought.

EDIT: Oh yah about the VLC thing you mentioned.. you can install VLC on the 5.1 machine... but dont set it to be the default player for video/audio files. So if someone wants to listen to music WMP or whatever will open up. Also a buddy of mine wrote a program to make programs into services.. i forget his website.. .program is called start2service or something like that. This would let the computer startup and immediately start streaming. Just a thought.

I didnt know WME had stream function.. I thought it was just a de/coder. neat stuff :)
 
nd4spdbh2, you have been given many good recommendations, but are making things too complex for yourself. You have all the media on your computer? Ok. Share that folder, map the network drive on the computer you want to play audio from. Setup foobar2k, as was recommended, and just control the music from your system.
 
Midnight Dream said:
nd4spdbh2, you have been given many good recommendations, but are making things too complex for yourself. You have all the media on your computer? Ok. Share that folder, map the network drive on the computer you want to play audio from. Setup foobar2k, as was recommended, and just control the music from your system.

It seems that that is no fun, and therefore...not worth it.
 
Last edited:
Back