Page 1 of 1

D2X-XL mp3/OGG support

Posted: Sun Dec 24, 2006 4:23 pm
by Diedel
The good news:

I have added playlist support for using your own mp3/OGG music files in D2X-XL, and basically it works.

The bad news:

SDL_mixer needs a file named smpeg.dll to play mp3s. It comes with such a file, but playing mp3 with SDL_mixer results in completely distorted static. So I tried OGG. Had to get ogg.dll and vorbisfile.dll from the inet. SDL_mixer tries to use a function in ogg.dll (via vorbisfile.dll) that is not contained in it.

:evil: :evil: :evil:

Edit: I could fix the OGG bug (by recompiling the OGG/Vorbis source code) but not yet the mp3 problem. :(

Posted: Sun Dec 24, 2006 8:45 pm
by Kyouryuu
I would suggest just focusing on OGG. Most games use OGG today, mainly because the MP3 codec is not open source.

Posted: Sun Dec 24, 2006 9:45 pm
by DCrazy

Posted: Mon Dec 25, 2006 4:36 am
by Diedel
Thx Crazy, I don't need an encoder, all I need is a decoding DLL. Or does Lame comprise one, too?

/me goes to check more

Hm. I think Lame is only to create mp3 files from other audio file formats, not for mp3 playback.

Posted: Sat Dec 30, 2006 2:50 pm
by pATCheS

Posted: Sat Dec 30, 2006 5:10 pm
by Diedel
I have everything I need now, thx.