You got several problems here. For one thing, if you are going to use namespaces (in this case std and sf) then you don't need to use sf:: or st:: when making calls. The point of using a namespace is to avoid that. For example, if you are using namespace std, you don't need std::cout, just cout.
Ok, for the more serious problems. Calls in C++ need to end with a semicolon. None of the ones after sf::Music::Music(); do until you get to Music::Play();
For that matter, what are you trying to do there?
The following...
sf::Music Music;
if (!Music.OpenFromFile("Music\\NLTT.mp3"))
return EXIT_FAILURE;
std::cout << "NLTT.mp3: " << std::endl;
std::cout << " " << Music.GetDuration() << " sec" << std::endl;
std::cout << " " << Music.GetSampleRate() << " samples / sec" << std::endl;
std::cout << " " << Music.GetChannelsCount() << " channels" << std::endl;
...is what you want. All that stuff after is A) not valid c++ and B) does not do anything or act on any object. Those are just methods of the sf::Music class itself.
Try using this (I took away namespaces since they are not essential here and clearly causing confusion):
#include <iostream>
#include <windows.h>
#include <SFML/Graphics.hpp>
#include <SFML/System.hpp>
#include <SFML/Audio.hpp>
#include <sstream>
int main()
{
sf::Music Music;
if (!Music.OpenFromFile("Music\\NLTT.mp3"))
return EXIT_FAILURE;
std::cout << "NLTT.mp3: " << std::endl;
std::cout << " " << Music.GetDuration() << " sec" << std::endl;
std::cout << " " << Music.GetSampleRate() << " samples / sec" << std::endl;
std::cout << " " << Music.GetChannelsCount() << " channels" << std::endl;
Music.Play();
std::cout << "Playing..." << std::endl;
while (Music.GetStatus() == sf::Music::Playing)
{
sf::Sleep(0.1f);
}
std::cout << std::endl;
std::cin.ignore(10000, '\n');
return EXIT_SUCCESS;
}
//edit: downtimes is faster than me
But the advice is good. Do some simple c++ tutorials and small program (like Hello World) in order to get the basics of the language. Also, follow the SFML tutorials as they are extremely helpful when trying to learn SFML :wink: