I can successfully load and use images, but am having problems doing the same for both sound and music.
#include <SFML/Audio.hpp>
int main()
{
sf::Music Music;
if (!Music.OpenFromFile("mus/chimes.wav"))
return EXIT_FAILURE;
Music.Play();
return EXIT_SUCCESS;
}
Gives me "Failed to open "mus/chimes.wav" for reading", and does the same with sf::SoundBuffer. I am certain the file path is correct, because I have correctly loaded images along similar filepaths (I also attempted reading an image from the same folder, which worked.)
I don't believe the .wav file is corrupted, since I can still play it, and I have attempted this with several files already.
Any ideas on what's wrong? I'm using Windows 7, gcc 4.4, sfml1.6, code::blocks.[/quote]