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 - darthspawn

Pages: [1]
1
Audio / LoadFromFile doesn't work
« on: October 08, 2009, 05:22:23 pm »
Strange! with the debug libraries the application works correctly

2
Audio / LoadFromFile doesn't work
« on: October 08, 2009, 05:06:41 pm »
This is the code, I'm using U++ libraries, the file is "ding.wav" from windows, how can I send it?


Code: [Select]
#include <Core/Core.h>
#include <SFML/Audio.hpp>
#include <iomanip>
#include <iostream>

using namespace Upp;

CONSOLE_APP_MAIN
{

sf::SoundBuffer Buffer;
if (!Buffer.LoadFromFile("ding.wav"))
        return;

    // Create a sound instance and play it
    sf::Sound Sound(Buffer);
    Sound.Play();
}

3
Audio / LoadFromFile doesn't work
« on: October 08, 2009, 04:59:10 pm »
Quote from: "Laurent"
What error message do you get in the standard output?


Failed to load sound buffer to file

4
Audio / LoadFromFile doesn't work
« on: October 08, 2009, 03:41:07 pm »
Quote from: "Laurent"
Quote
OpenFromFile return 0

 Are you launching the program from the IDE?


Yes, but also if I launch the program manually the file is not found, and also if I put a full path "C:\\sound.wav"

5
Audio / LoadFromFile doesn't work
« on: October 08, 2009, 02:55:58 pm »
OpenFromFile return 0, and myduration and myFile are 0
But i have verified that the file exist. Maybe I must include or define something, or add some library? thanks

Sam

6
Audio / LoadFromFile doesn't work
« on: October 08, 2009, 11:48:41 am »
Hi to all, I've just downloaded SFML, i'm using it with u++.

I have the dll openal32 and libsndfile-1 in the program directory, but when I do a OpenFromFile, for load an ogg file in a Music object, or  LoadFromFile for load in a soundbuffer a wav file, the file is not loaded.
Any suggestion?

Sam

Pages: [1]
anything