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

Author Topic: "Failed to load sound buffer from file"  (Read 4505 times)

0 Members and 1 Guest are viewing this topic.

Drak

  • Newbie
  • *
  • Posts: 8
    • View Profile
"Failed to load sound buffer from file"
« on: April 28, 2011, 08:33:03 pm »
I've read other people have had this problem. But I can't seem to fix mine.

VS2008
Release mode - dynamic linking / libs.
SFML 1.6

All the proper dlls are located within the program folder. (From extlibs)
The code is the code from the tutorial section of SFML 1.6 - playing a sound.

I tried debug / release (with the proper -d libs) and still nothing. Playing music works fine. But I can't get it to load anytime of .wav.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
"Failed to load sound buffer from file"
« Reply #1 on: April 28, 2011, 09:41:25 pm »
Make sure that the wav file is in the current working directory. This is the executable's directory if you run the app from the explorer, but it may be the project directory if you run it from your IDE.
Laurent Gomila - SFML developer

Drak

  • Newbie
  • *
  • Posts: 8
    • View Profile
"Failed to load sound buffer from file"
« Reply #2 on: April 28, 2011, 09:49:57 pm »
Running from the explorer, so it's located inside the same folder of the exe.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
"Failed to load sound buffer from file"
« Reply #3 on: April 28, 2011, 10:27:18 pm »
Is it the wav file that is provided with the SFML SDK?
Laurent Gomila - SFML developer

 

anything