Jump to content
  • Advertisement
Sign in to follow this  
Alpha Nox

SDL_MIXER WITH SMPEG

This topic is 4820 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!