SFML community forums

Help => Audio => Topic started by: sirjuddington on May 04, 2011, 05:48:33 pm

Title: Flac playback in windows
Post by: sirjuddington on May 04, 2011, 05:48:33 pm
I compiled SFML 1.6 manually using VS2010 in Windows, but it seems flac playback is disabled in the build (using SoundBuffer::LoadFromMemory with flac data always returns false).

Is there anything I'm missing when compiling SFML in VS2010? Do I need to define anything and/or include the flac libs somewhere?
Title: Flac playback in windows
Post by: Laurent on May 04, 2011, 06:00:12 pm
From the website of libsndfile, which is what SFML uses to read audio files, it's not very clear if FLAC is supported or not in versions < 1.0.18 (I think SFML 1.6 uses libsndfile 1.0.17).

The history says FLAC support was added in version 1.0.12, but in the Features section the author says "From version 1.0.18, libsndfile also reads and writes FLAC and Ogg/Vorbis".
Title: Flac playback in windows
Post by: sirjuddington on May 04, 2011, 06:08:33 pm
Yep that was it, using the latest libsndfile-1.dll enables flac playback :)