Mp3 Stream Ripper
This program rips mp3 streams to the harddisk, using raw tcp/ip
sockets instead
of components. folder names are taken from the server title and
filenames from
the metadata information. Pretty much the same what streamripper32
does.
paramstr (1) defines the http:// url of the stream
if paramstr(2) is given, a file temp0.mp3 will be created
additionally which
covers all received stream data, so that file can be played with
your player in
real-time.
using winsock directly saves a lot of exe space.
together with KOL thats quite an effective way :)
Only Code not written by myself is the initconnection routine,
which i took
from MSDN homepage (example for the RECV command) and translated it
from C++
to delphi.
Note: the Metaint is a bitch ;)
it took 2 days to get the handler routine to a bugfree level.
maybe it could be done easier...
note that similar results can be get by using the idHttp component
of Indy,
much simpler but without the metadata which contains the title
information.