Streaming mp3 playback - possible?

Hi All,

I’m looking for developing a streaming mp3 player. Can anyone help me with any solution for playing mp3 file in chuck ?
I suppose SDL does not support playing mp3 ausio (Please correct me if I’m wrong)

I am able to play PCM data using callback, but to use this I need to impliment a mp3 decoder which I want to avoid.

So is there any solution to have a callback function play mp3 data just like it plays a PCM data ?

Any leads on this would be highly appreciated.

Thanks in advance.

Regards,
Sagar

Have you looked at libmad?
http://www.underbit.com/products/mad/

Jonny DOn Mon, Aug 17, 2009 at 9:10 AM, Sagar Mody wrote:

Hi All,

I’m looking for developing a streaming mp3 player. Can anyone help me with
any solution for playing mp3 file in chuck ?
I suppose SDL does not support playing mp3 ausio (Please correct me if I’m
wrong)

I am able to play PCM data using callback, but to use this I need to
impliment a mp3 decoder which I want to avoid.

So is there any solution to have a callback function play mp3 data just like
it plays a PCM data ?

Any leads on this would be highly appreciated.

Thanks in advance.

Regards,
Sagar


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

SDL’s creator Sam Lantinga created SMPEG quite some time ago. Users of
the SDL_mixer library can leverage SMPEG from the SDL_mixer API to
decode MP3. SDL_mixer supports several codecs, not just for MP3.

If you are doing this as a learning experience, please continue. If
not, you might want to check out GStreamer, which is a much more
flexible streaming multimedia framework. It can take care of much more
for you than only decoding, and it can work in tandem with SDL.On Mon, Aug 17, 2009 at 9:10 AM, Sagar Mody wrote:

Hi All,

I’m looking for developing a streaming mp3 player. Can anyone help me with
any solution for playing mp3 file in chuck ?
I suppose SDL does not support playing mp3 ausio (Please correct me if I’m
wrong)

I am able to play PCM data using callback, but to use this I need to
impliment a mp3 decoder which I want to avoid.

So is there any solution to have a callback function play mp3 data just like
it plays a PCM data ?

Any leads on this would be highly appreciated.

Thanks in advance.

Regards,
Sagar


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


http://codebad.com/