I'm learning SFML and up until trying to get the audio module working things had been going fine. I haven't been able to find this particular error so I thought it was worth coming here.
All I'm trying to do is play a simple .wav file on the click of the mouse.
I stripped down all my code to the relevant audio code. There was a main game loop and events and such but its not important to the issue:
#include <SFML/Audio.hpp>
int main()
{
sf::SoundBuffer buffer;
buffer.loadFromFile("Ring01.wav");
sf::Sound sound;
sound.setBuffer(buffer);
sound.play();
return 0;
}
Error: "Entry Point Not Found: The procedure entry point at alcCaptureSamples could not be located in the dynamic link library C\:[rest of path]\sfml-audio-2.dll"
In Linker -> Input -> Additional Dependencies I have added:
openal32.lib; <- Added this because I saw a suggestion somewhere online for a similar issue. Didn't help.
sfml-audio-d.lib;
sfml-graphics-d.lib;
sfml-window-d.lib;
sfml-system-d.lib;
I only installed SFML a couple days ago and followed the guide for Visual Studio. (I didn't do the SFML_STATIC method where you have to include all the -s .lib files). To be honest I'm not great at this type of stuff. (linking, additional dependencies, .dll, .libs). So any suggestions would be appreciated. Diagnosing this will probably be a valuable experience in learning how this kind of stuff works.
If more information is needed, just let me know.