sf::Sound verses[MAX_LOOPS]; // at the constructor
..
..
Sound sound;
sound.SetBuffer(buffer);
verses[getPos(pEntry->d_name)] = sound;
"An internal OpenAL call failed in soundbuffer.cpp (308) : AL_INVALID_VALUE, a numeric argument is out of range"
I get this error message even though it returns TRUE flag.
HOWEVER,
Sound sound;
sound.SetBuffer(buffer);
itself works awesome.
I don't get it, why can't it use in arrays?
Any alternative to this code?
I was using Music object and it works fine. But when it comes to Sound instance, it just throws me this mysterious error.
Help needed, thank you guys in advance.