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.


Messages - ran dom

Pages: [1]
1
Audio / Sfml Audio is not playing and exits with access error
« on: June 06, 2013, 12:03:28 am »
Hello. I am still having bizzare errors with sfml audio. Nothing plays with my simple code, even though it is copied from the documentation. When I click the button that calls this function, nothing happens. Then when I try and exit the application I get this error from visual studio: Unhandled exception at 0x000007FEFE5073A7 (ole32.dll) in Trackbox.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.

Can anybody tell me what I am doing wrong with my code?  Thanks for all of the help.
Here is my code:

Trackbox.h

private:
sf::Music music;

private slots:
void submitButton_Clicked();

Trackbox.cpp

void Trackbox::submitButton_Clicked() {
        if (!music.openFromFile("sound.wav")) {
                std::cout<<"errors \n";
        }
        music.play();
}

2
Audio / Re: Linker can't find sfml-d-2.dll
« on: June 05, 2013, 11:32:42 pm »
Sorry, I didn't read the error message closly enough, it didn't realize it required smal-system as well as audio openal, and the like.

3
Audio / Linker can't find sfml-d-2.dll
« on: June 05, 2013, 06:30:14 pm »
I'm sure similar questions has been asked before, but I am getting the most bizarre error when trying to use visual studio 2012 with sfml audio. I set visual studio as per the instructions in the documentation here. However, when I try and use sfml-audio-d.lib, it says it can't find the sfml-audio-d-2.dll. The dll is definitely sfml-2.0/bin. I also tried to copy it to the same folder as the compiled exe and it had the same problem.

Pages: [1]