iam trying to record sound from an activex WMP control playing an internet radio stream, and because no simple way to do it, i decided to record the system sound or the so called "what you hear" (the stereomix, which is disabled in many PCs).
so, how can i record system sound and save it an mp3, wav... file, without enabling stereomix, or how to enable it programatically, without user interaction.
i have no experience with audio applications, so please dont say try
without giving me code exemple, cause i already tried to understand how to use, but, if i did i wouldnt askin you here.
i'am new here, and this is my first question
[i hope i get good answers]
THANKS IN ADVANCE :]
As we came up (in the question comments) with the conclusion that it might be better to record the radio stream instead of recording from the soundcard:
Have a look at Indy
, Synapse
or ICS
. (Delphi comes with Indy out of the box)
There should be examples for each of these components that show how to read data from a HTTP
/TCP
server.
Be aware that the data is probably not just plain MP3
or WMV, but there is usually some kind of framing that inserts title information and divides the sound data into chunks.
There are many streaming servers (i.e. Shoutcast
, Icecast
and others) out there that have different ways to encode the audio data.
You should first find out what kind of streaming server
your internet radio is running. The first thing that happens when you send a HTTP GET request
is usually a response that has some identification information.
You could also end up with just a playlist file that has the real URL inside.
PS: You might want to search for (or ask) additional questions on SO to get more information about the topics I mentioned.
Hope that helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With