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

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

0 Members and 2 Guests are viewing this topic.

Contadotempo

  • Full Member
  • ***
  • Posts: 167
  • Firelink Shrine
    • View Profile
Failed to load sound buffer from file
« on: September 29, 2010, 08:26:38 pm »
Hi, I'm new to the forums so I'm not sure if I'm posting in the correct section, but here it goes.

I tried making a program in Visual Studio C++ 2008 using SFML, that would play a simple .wav file. However when I run it I only get the message:
"Failed to load sound buffer from file "sound.wav".

The code is the default one provided on the Audio tutorial:
http://www.sfml-dev.org/tutorials/1.6/audio-sound.php

source file in: http://www.sfml-dev.org/tutorials/1.6/sources/audio-sound.cpp

I've included libsndfile-1 and openal32 on the exe folder. The sound is present on the folder as well and is named sound.wav

What could be wrong?

Thanks in advance for any help

Contadotempo

  • Full Member
  • ***
  • Posts: 167
  • Firelink Shrine
    • View Profile
Failed to load sound buffer from file
« Reply #1 on: October 06, 2010, 05:23:46 am »
It was a problem related to Visual Studio 2008.
I was compiling on debug mode. Changing it to "Release" solved it.

 

anything