Good daytime, guys.
I've started making a game project on SFML yesterday and already got a big problem. /subj goes here/
First, it uses DUMB-based ModMusic snippet from CosmoScroll (
https://code.google.com/p/cosmoscroll) to play BGM. It works well (although, got some playing/looping issues on gobus.mod).
Then I decided to add some sounds. Made a separate file, wrote loading code, inserted extern sf::SoundBuffer declarations to a header file, tried to build it... And on running a binary file there goes 'whoops':
Process returned -1073741515 (0xC0000135).
Even if I don't make any references to it, it still even fails till I comment out all SoundBuffer declarations.
Debugger shows that it doesn't even makes it to main(), so I can think that's something about memory.
What can I do with it? May it be related to the ModMusic code?
Windows 7 x64, SFML 2.1 (static), Code::Blocks 13.12, no Qt.
UPD: If it is about code, here it is.
UPD2: Yeah, it even makes a crash with SoundBuffer in the same module. So.
UPD3: Derp, it does a crash even without ModMusic, and WITHOUT ANY WINDOWS.
Code updated again, gonna reinstall SFML right now.
UPD4: OK, it becomes serious. Reinstalled SFML, tried again with below code and still crashes. Now it's your turn.
#include <SFML/Audio.hpp>
sf::SoundBuffer sndWhatever;
int main()
{
return 0;
}
UPDn: The problem is solved. Kids, always put libsndfile-1.dll and openal32.dll, even if you're linking your project statically.