• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

C# audio streaming

pcnerd37

Senior member
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!
 
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.
 
hmm, good point about the needs of lots of bandwidth. Maybe I will stay away from streaming and find another solution. Thanks.
 
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.
 
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.
 
Back
Top