I am using Debug x64 and i am not mixing libraries (linked libs with -d suffixes)
No sound at all and Text is broken because of the font
void Window::setText()
{
sf::Font font;
if (!font.loadFromFile("edge.otf"))
{
std::cout << "ERROR" << std::endl;
}
this->text.setFont(font);
this->text.setCharacterSize(24);
this->text.setString("Hello World");
}
Exception thrown at 0x00007FFD771569DB (sfml-graphics-d-2.dll) in WindWar.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.
Sound::Sound()
{
buffer.loadFromFile("assets/harp.wav");
}
Sound::~Sound()
{
}
void Sound::play()
{
sound.setBuffer(buffer);
sound.play();
}
No error but no sound