Ideas on how to stream audio [modified]
-
I have a receiver connected to the sound card of a computer through the Line In port. Currently, I have some old, unpleasant C++ code that captures the sound to a file locally. What I want to do now is to write some C# code instead that captures the sound off the sound card and uses probably UDP to send packets of the sound data to another computer, which will then play that streamed sound. I need some ideas of how to go about this, if anyone has any helpful suggestions. I would need to know: 1) How in C# to capture sound from the sound card on the system connected to the receiver. 2) How on the other machine to feed the incoming sound packets to ?? DirectSound or Windows Media Player ?? so that the user can hear it as it comes in. It is not really a constant stream of data, like a streamed radio station (though to be quite honest I don't know how streamed radio stations work either). The user on the second computer chooses which receiver-equipped-computer he wants to connect to in order to receive sound. I'm basically clueless on the two points above, so I would appreciate any suggestions. -- modified at 12:52 Friday 14th July, 2006