I keep getting this error message in the command prompt.
An internal OpenAL call failed in SoundBuffer.cpp(253): GL_INVALID_OPERATION, a numeric argument is out of range
The weird part is, is that the program still works. The sound plays as it should, but the error message still pops up which is annoying me.
I don't understand what the problem is. I did some research, but nothing came of it. Through out my program I have the following structure when dealing with sound.
class A
{
private:
sf::soundbuffer buffer
sf::sound aSound;
}
if(!buffer.loadFromFile("sound.wav"))
return -1;
aSound.setBuffer(buffer);
while(run)
{
while(gui.pollEvent(callback))
{
if(callback.id == 1)
aSound.play();
}
}