I want to develop a software which can record online radio streams in VC++ using MFC. Any pointers to get me started.
相关问题
- how to call a C++ dll from C# windows application
- efficiently calling unmanaged method taking unmana
- In what practical case bool(std::ifstream) != std:
- Why is my COM factory never released during the pr
- Delphi stream panel to file
相关文章
- MemoryStream disables reading when returned
- Convert HttpContent into byte[]
- C++: Callback typedefs with __stdcall in MSVC
- MemoryStream.WriteTo(Stream destinationStream) ver
- c# saving very large bitmaps as jpegs (or any othe
- Is it possible to check whether you are building f
- Which VC++ redistributable package to choose (x86
- MFC CListView响应HDN_ITEMCHANGING后改变列宽无法自动显示隐藏水平滚动条
I suspect this is non-trivial, primarily due to lack of documentation and/or codecs.
"Online radio streams" covers a multitude of sins. There are many different codecs in use and many different arrangements for transfering audio data from the server to the client.
There are two basic problems. The first is getting hold of the data coming into your PC. One solution is to capture data from the network stack, by writing a filter driver or - much more easily - using an existing third party product, like WinPCAP. The second problem is then figuring out what in this data is your audio data. This data will be compressed, so you will need to know the codec in use, so that once you have the data, you can play it back. (The codec might, for example, be embedded in a flash or java applet and so not be available to you). The data may also be encrypted. If that is the case, you will also need to subvert the client-side software involved in the data transfer stream, which is a whole new ballgame.
Basically, you could spend two years on this, easy.
You could maybe look into a project that already seems to have implemented what you are asking for.
Well, I have recommended the BASS library here before, and I must do it again. It is simply awesome, and has built in support for internet streams and recording. No need to do tedious networking stuff, just look at the sample Netradio in the download.
You can use NAudio library it is very usefull http://naudio.codeplex.com/