1
Audio / LoadFromFile doesn't work
« on: October 08, 2009, 05:22:23 pm »
Strange! with the debug libraries the application works correctly
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.
#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();
}
What error message do you get in the standard output?
QuoteOpenFromFile return 0
Are you launching the program from the IDE?