View previous topic :: View next topic |
Author |
Message |
Anonymous Guest
|
Posted: Mon Aug 15, 2005 3:37 am Post subject: Icecast documentation, general questions |
|
|
Hey there, I have a few questions about the development of a player. I am not interested in making a standalone player, but I need the functionality in a video game so I might as well be.
Unfortunately, I am having trouble finding a fairly good, i.e. thorough description of the audio bitstream from the Icecast http server. A link to such a place might be all that's necessary...
I have already installed the vorbisfile libraries to get me started, but they seem only to be perfect for ogg vorbis files that are on your hard drive, and there is a lot to framing the bitstream from the server. Am I basically stuck with reading someone else's source code to figure out what's going on? Where did the first person that made a player get his information?
In the end I'd like to stream the media into a raw format native to a common audio library such as DirectSound. A link to some libraries that already do exactly this would be even better.
You guys are doing a great job, thanks in advance. |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Aug 16, 2005 2:32 am Post subject: |
|
|
The general sequence for a stream is (icecast->listener), http style headers followed by the raw compressed data (ogg/mp3 etc).
For mp3, you need to check the mp3 specs, but note that shoutcast metadata may have to be filtered out if it has been requested. For Ogg, just follow the ogg specifications, the only difference between parsing the stream from icecast and a file is that with icecast you cannot seek.
The Ogg spec is available on http://www.xiph.org/ogg/ but if you want to use vorbisfile with a network connection then you have to provide the callbacks to override the fread call (http://www.xiph.org/ogg/vorbis/docs.html)
karl |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group subRebel style by ktauber
|