It took a while to figure out, but I got it compiled, but still the crash exists.
On the compile I noticed that theres no new:
libsndfile-1.dll
or
openal32.dll
Does that make a difference?
EDIT:
I found the libsndfile-1.dll and openal32.dll and copied the to my project. Still Crashes. :(
FMOD? lol
Just for reference my audio code is this:
sf::SoundBuffer buf1;
sf::Sound sound;
buf1.loadFromFile("explode1.wav");
Then call it like this:
if ((bullet[j].x >= zombie[i].x-WorldPosX) && (bullet[j].x <= zombie[i].x+40-WorldPosX) && (bullet[j].y >= zombie[i].y + 5) && (bullet[j].y <= zombie[i].y + 60))
{
bullet[j].flag = false; //turn off for mega bullet
zombie[i].state = 1;
zombie[i].alive = false;
player.score = player.score + 10;
//Mix_PlayChannel( 1, sound1, 0 );
sound.setBuffer(buf1);
sound.play();
}