Jump to content
  • Advertisement
Sign in to follow this  
ic0de

SDL_mixer with FLAC

This topic is 2534 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

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
Advertisement
SDL_mixer does have FLAC support, but the FLAC libraries must be installed.

Although a little bit old but works, look at the documentation here.

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 here.


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



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.



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
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!