C# audio streaming

pcnerd37

Senior member
Sep 20, 2004
944
0
71
Either I dont know what im looking for or Google isnt being helpful, so I decided to ask here. Basically, I am looking some articles or something on how to stream audio using C#.

What I am looking for is a way to stream audio from one program, over the internet so the same application at another location. If you know of any articles to point me to or know how to do this, please post! Thanks!
 

Crusty

Lifer
Sep 30, 2001
12,687
1
0
If you are going to stream raw uncompressed audio data you will need a high bandwidth connection. If you are wanting to stream something like mp3 music across the internet then you would just setup a simple client/server app that streams the binary mp3 data to the client which then applies the codec to the binary data to produce the audio data on the client machine.

Same thing goes for any codec really, you would compress the audio data and stream that binary data to the client, who then decodes the file to produce audio data.

There are already a few libraries/programs that do what you want. Icecast2 for Linux does pretty well, as well as most media managers have a way to stream data.
 

pcnerd37

Senior member
Sep 20, 2004
944
0
71
hmm, good point about the needs of lots of bandwidth. Maybe I will stay away from streaming and find another solution. Thanks.
 

Crusty

Lifer
Sep 30, 2001
12,687
1
0
Originally posted by: pcnerd37
hmm, good point about the needs of lots of bandwidth. Maybe I will stay away from streaming and find another solution. Thanks.
You can certainly stream MP3's and other audio formats, you just need to make sure you handle the codec on both sides of the connection if needed.
 

manko

Golden Member
May 27, 2001
1,846
1
0
You might have a look at this from Microsoft.

Vista P2P Toolkit

Develop applications that stream video and music, share files or a chat application; combine all these in a single application with only a few more mouse clicks
I haven't looked at it myself yet, but I think you can look at the underlying code.
 

ASK THE COMMUNITY