Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - lordimmortal

Pages: [1]
1
Audio / Audio Crash
« on: July 29, 2011, 08:35:04 pm »
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:

Code: [Select]
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.

Pages: [1]