So I have a web audio stream that I would like to capture. What I want this program to do is grab the stream, record it and write it to a file (mp3, wav..whatver codec that is easy) and create one hour intervals of the audio stream. So every hour there is a new file created.

Where should I begin looking for a library that will allow me to do the streaming audio capture capability? Any suggestions?

Thanks!

EDIT: The format it is being streamed in is .m3u