no i was talking about streaming a local file, but i will take a look anyways...
Nehal
Hmm, I'm assuming you are talking about shoutcast streaming; if that's the case, then just do some google searching for it and you'll find stuff. Basically, it's like downloading an mp3 file wich has "meta" information embedded in it. When you establish a connection, it'll tell you how often to expect the meta information -- extract that from the stream, and send everything else to the rio. You can check out my code for RRR for an example -- these files should containt the crux of it...
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/grrr/rrr/shoutcast.c?rev=1.1&... http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/grrr/rrr/glue.c?rev=1.15&...
Reza
Nehal wrote:
Hello,
im trying to stream an mp3, although im finding it quite difficult, since there is no Documentation (or i could not find any) :)
i looked at minimad .. although that is for non-streaming, what would i need to do for streaming?
i have set my write and read callbacks... when are they called? how do i know how many bytes need to be called in the read callback? do i still need to call mad_decoder_run()? what do the synth functions do? do i need them? should i call mad_frame_decode .. and when? ... what does it return?
i am just completely lost...
btw, even the mildest documentation can be somewhat helpful...
thankyou, Nehal