How do I play mp3 with sdl_mixer and smpeg? (fwd)

I’m not a win32 guy myself (and being out of town, I don’t have access to
a win32 devbox, either)…can someone help this guy?

Thanks,
–ryan.---------- Forwarded message ----------
Date: Fri, 5 Jul 2002 20:52:21 +0200
From: lars.englund@home.se (Lars Englund)
To: “@icculus” <@icculus>
Subject: How do I play mp3 with sdl_mixer and smpeg?

Hi, I have downloaded the SDL_mixer pack with the libs, dlls, and headers
for win32. I have allso downloaded the smpeg pack with the libs, dlls, and
headers for win32. I then included smpeg.h and SDL_mixer.h but all i get
when trying to play an mp3 is:

Mix_PlayMusic: Module format not recognized

Do I have to compile SDL_mixer to use SMPEG? If so, how do I do that?

Regards,
Lars Englund

Hi, I have downloaded the SDL_mixer pack with the libs, dlls, and headers
for win32. I have allso downloaded the smpeg pack with the libs, dlls, and
headers for win32. I then included smpeg.h and SDL_mixer.h but all i get
when trying to play an mp3 is:

Mix_PlayMusic: Module format not recognized

Do I have to compile SDL_mixer to use SMPEG? If so, how do I do that?

Yes, you have to recompile. If you use MS Visual C, then you have to go to
the project settings and add MP3_MUSIC to the defines and add smpeg.lib to
the librarys. I just did that today with the latest versions and it works.
You have to download the source of SDL_mixer, for smpeg the header and lib
is enough.

FlorianFrom: lars.englund@home.se (Lars Englund)

Hi,

the Pygame page has a set of Windows SDL libraries that includes
SDL_mixer and SMPEG working together. See :

http://pygame.seul.org/download.shtml

and look for the file 'win32-dependencies.zip’
The .dll’s are in the ‘prebuilt/lib’ folder,

cheers,
John.> ----- Original Message -----

From: florian.proff.schulze@gmx.net (Florian Schulze)
To: ; “Lars Englund” <lars.englund at home.se>
Sent: Friday, July 05, 2002 10:47 PM
Subject: Re: [SDL] How do I play mp3 with sdl_mixer and smpeg? (fwd)

From: Lars Englund <lars.englund at home.se>

Hi, I have downloaded the SDL_mixer pack with the libs, dlls, and
headers

for win32. I have allso downloaded the smpeg pack with the libs, dlls,
and

headers for win32. I then included smpeg.h and SDL_mixer.h but all i get
when trying to play an mp3 is:

Mix_PlayMusic: Module format not recognized

Do I have to compile SDL_mixer to use SMPEG? If so, how do I do that?

Yes, you have to recompile. If you use MS Visual C, then you have to go to
the project settings and add MP3_MUSIC to the defines and add smpeg.lib to
the librarys. I just did that today with the latest versions and it works.
You have to download the source of SDL_mixer, for smpeg the header and lib
is enough.

Florian


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl