Sign in to follow this  
ic0de

SDL_mixer with FLAC

Recommended Posts

Does anybody know where i can get a copy of SDL_mixer for windows prebuilt with FLAC support. I tried building it myself but I don't seem to understand how SDL and flac work together. If anybody has already built one I would be really thankful if they could send it to me. Thanks in advance :D

Share this post


Link to post
Share on other sites
SDL_mixer does have FLAC support, but the FLAC libraries must be installed.

Although a little bit old but works, look at the documentation [url="http://www.libsdl.org/projects/SDL_mixer/docs/SDL_mixer.html"]here[/url].

Share this post


Link to post
Share on other sites
[quote name='Ryan Konky' timestamp='1307713214' post='4821703']
SDL_mixer does have FLAC support, but the FLAC libraries must be installed.

Although a little bit old but works, look at the documentation [url="http://www.libsdl.org/projects/SDL_mixer/docs/SDL_mixer.html"]here[/url].
[/quote]

I know the FLAC libraries must be installed but does it mean on the end user's machine or on the developer's machine? I thought that i would need to build my own copy of SDL_Mixer but somehow link it with the flac libraries, i was asking if anyone had done that.


Share this post


Link to post
Share on other sites
[quote name='ic0de' timestamp='1307924438' post='4822553']


I know the FLAC libraries must be installed but does it mean on the end user's machine or on the developer's machine? I thought that i would need to build my own copy of SDL_Mixer but somehow link it with the flac libraries, i was asking if anyone had done that.

[/quote]

It will require the FLAC ,DLL file, which I don't think is that large anyway, it's around 0.04 MB (about 41 kb). There is no need to build a version of SDL_mixer library with FLAC support, as it already has it. Just like SDL, it requires the sdl.dll file being installed on the end user device. - Yes more files to include.

Basically:
As a developer just do what you do but with FLAC within the SDL API.
When distributing, include the flac.dll file in the download, same as you would sdl.dll or sdl_image.dll.

Hope this helps! :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this