A better way to use SDL_mixer

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
_MakeFile_
Posts: 15
Joined: Thu Jan 05, 2006 10:43 am

A better way to use SDL_mixer

Post by _MakeFile_ »

I have recomplied the game abrick from the svn repository making some changes to the game's makefile. I found a better way to link SDL_mixer library when adding music to your game or application. Instead of just linking SDL_mixer to libvorbisdec for a temporary fix, it is better to link SDL_mixer to these libraries in this order -lvorbisfile -lvorbis -logg. That way, the game is complied correctly and the music works 100% correctly with the game. You can also add these libraries at the end of your library order if you like also. I know that the game abrick is not the best game out there right now but you can use this better linking method to any game or application that uses the SDL_mixer library so that the game or application is correctly calling the files it needs to play music from those libraries.
Post Reply