I'm having trouble getting around this. If I play a simple sound it always makes the program lag. Is there something that i'm doing wrong with sf::Sound?
I have a simple script that happens only once.
buffer[4].loadFromFile("ASSETS/thunder.wav");
sound[4].setBuffer(buffer[4]);
sound[4].play();
Its only an array of 10 sounds and an array of 10 buffers. Any clues as to why it causes a lag? More specifically, I notice a definite lag in graphics when this happens.