D2X-XL mp3/OGG support

D2X-XL - Descent II update for modern systems with many new features and enhanced graphics. Home Page

Moderators: Grendel, Aus-RED-5

Post Reply
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

D2X-XL mp3/OGG support

Post 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. :(
User avatar
Kyouryuu
DBB Alumni
DBB Alumni
Posts: 5775
Joined: Fri Apr 30, 1999 2:01 am
Location: Isla Nublar
Contact:

Post by Kyouryuu »

I would suggest just focusing on OGG. Most games use OGG today, mainly because the MP3 codec is not open source.
User avatar
DCrazy
DBB Alumni
DBB Alumni
Posts: 8826
Joined: Wed Mar 15, 2000 3:01 am
Location: Seattle

Post by DCrazy »

User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post 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.
pATCheS
DBB Ace
DBB Ace
Posts: 187
Joined: Sat Apr 03, 2004 9:12 pm
Contact:

Post by pATCheS »

User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post by Diedel »

I have everything I need now, thx.
Post Reply