I recently added some sounds to my current project and noticed that there were some very brief delays in my display and then several seconds later a much longer pause - basically the program locks up for a few seconds. It was very noticeable as it's a scrolling 3D view drawn with OpenGL. I'm tried WAV and OGG files and the result is the same. The sounds themselves seem to play fine.
I've tried adding a simple sound to play in the SFML OpenGL example of the white cube and got the same results. I added these lines just before the start game loop:
sf::SoundBuffer doorBuffer;
sf::Sound doorSound;
doorBuffer.LoadFromFile("datas/audio/door.wav");
doorSound.SetBuffer(doorBuffer);
doorSound.Play();
I'm using Windows XP, the latest SVN and Visual Studio. I haven't had the chance to test this on another PC yet.
Thanks.