Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Flac playback in windows  (Read 3069 times)

0 Members and 1 Guest are viewing this topic.

sirjuddington

  • Newbie
  • *
  • Posts: 13
    • View Profile
Flac playback in windows
« 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Flac playback in windows
« Reply #1 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".
Laurent Gomila - SFML developer

sirjuddington

  • Newbie
  • *
  • Posts: 13
    • View Profile
Flac playback in windows
« Reply #2 on: May 04, 2011, 06:08:33 pm »
Yep that was it, using the latest libsndfile-1.dll enables flac playback :)