SDL_MIXER WITH SMPEG

Started by
1 comment, last by Alpha Nox 18 years, 7 months ago
Hello, I'm trying to play mp3 files with SDL_MIXER and it says i need to have smpeg. I already dloaded smpeg and included its files in visual studio and I already linked it to the smpeg library. But still it wont play mp3 files. Do I need to include all headers in the program? What do I need to do? Thanks, Victor Freire
Advertisement
You must actually build SDL_mixer yourself using SMPEG, I'm assuming you are using the precompiled version of SDL_mixer.

PS. There's a reason it's not easy to use MP3s in your game, distributing applications that use MP3s makes them subject to costly licensing.

You may want to look into using Ogg Vorbis files which are both license free and work with SDL_mixer without any modifications to SDL_mixer's code.
Ok, I'm already using OGG vorbis now.
I didn't know there was a license for the use of MP3.



Thanks very much for your help,
Victor Freire

This topic is closed to new replies.

Advertisement