I'm trying to play a sound in my program and when I try to use anything from music or soundbuffer I get the error.
int audio()
{
sf::SoundBuffer buff;
if (!buff.loadFromFile("anon.wav"))
{
//error...
}
sf::Sound anon_m;
anon_m.setBuffer(buff);
anon_m.play();
return 0;
}