Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Icecast documentation, general questions

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Listener Clients
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Mon Aug 15, 2005 3:37 am    Post subject: Icecast documentation, general questions Reply with quote

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
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Aug 16, 2005 2:32 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Listener Clients All times are GMT
Page 1 of 1

 
Jump to:  
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