SFML community forums

Help => Audio => Topic started by: HammaJamma on July 31, 2014, 02:32:00 am

Title: openAL32.dll error when using any sfml audio
Post by: HammaJamma on July 31, 2014, 02:32:00 am
this code
#include <SFML\Audio.hpp>
int main()
{
        sf::SoundBuffer buffer;
};
produces this error
(http://s10.postimg.org/pg0hh1x7t/dll_error.png) (http://postimage.org/)
img (http://postimage.org/)

It was originally an openAL32.dll is missing error but I used an openAL installer from here
http://www.openal.org/creative-installers/ (http://www.openal.org/creative-installers/)

here's my system info
(click to show/hide)

I'm using Static SFML 2.1

I checked my Graphics card and audio drivers and both are up to date (now xD)
I have installed libsndfile-1.0.25 x64 and x32 from here
http://www.mega-nerd.com/libsndfile/ (http://www.mega-nerd.com/libsndfile/)
I will keep searching for a solution but if anyone has any idea what is causing this I would appreciate the info
Title: Re: openAL32.dll error when using any sfml audio
Post by: Strelok on July 31, 2014, 03:21:10 am
From the docs
Quote
If you are using the sfml-audio module (either statically or dynamically), you must also copy the DLLs of the external libraries needed by it, which are libsndfile-1.dll and OpenAL32.dll.
These files can be found in <sfml-install-path/bin> too.
Title: Re: openAL32.dll error when using any sfml audio
Post by: HammaJamma on July 31, 2014, 03:35:41 am
So simple. Thank you very much.
Title: Re: Re: openAL32.dll error when using any sfml audio
Post by: Strelok on July 31, 2014, 04:49:29 am
So simple. Thank you very much.
You're welcome ^-^