If I try to play an ogg file, this error is displayed:
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Here´s the source code:
#include <iostream>
#include <SFML/Audio.hpp>
int main()
{
std::string FileName;
sf::Music MusicPlayer;
std::cout << "Insert Path to file: ";
std::cin >> FileName;
if (!MusicPlayer.OpenFromFile(FileName.c_str()))
{
return -1;
}
else
{
MusicPlayer.Play();
}
}