I have been trying to get the audio of SFML working but it crashes in a strange way.
The game crashes when trying to reference 0x00000000. It seems to be trying to access some 64-bit code which is strange since there aren't any different library sets from SFML beyond different OSes, or so I can tell. I am on Windows XP 32-bit. Here is the code:
void LoadSound()
{
sf::SoundBuffer Buffer;
sf::Sound Sound;
if (!Buffer.LoadFromFile("Test.wav"))
{
// Error
return;
}
Sound.SetBuffer(Buffer);
Sound.SetLoop(true);
Sound.SetVolume(100);
Sound.Play();
}
I used a piece of music on my computer to test, it crashed that way, so I thought it might be long/big of a file (which was supported by the tutorial of music on SFML). I cut it down to about half a second and that didn't work, so I tried using a sound effect that came with the samples of SFML. That didn't work either.
The error:
As always, any help and replies are greatly appreciated.