Preparing the project for sound

In order to successfully compile a project that uses SFML audio, we need to make sure these additional dependency .lib files are included:

  • sfml-audio-s.lib
  • openal32.lib
  • flac.lib
  • ogg.lib
  • vorbis.lib
  • vorbisenc.lib
  • vorbisfile.lib

Additionally, the executable file must always be accompanied by the openal32.dll file, which comes with SFML and can be found inside the bin folder of the library.

Get SFML Game Development By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.