fork download
  1. #include "MySounds.h"
  2. using namespace std;
  3. using namespace sf;
  4.  
  5. MySounds::MySounds(){
  6. // Load the music from an OggVorbis file
  7. Music Music;
  8. if (!Music.OpenFromFile("Resource/Music/atarians.ogg"))
  9. {
  10. cout << "File not Found - Press enter to Continue..." << endl;
  11. cin.ignore(10000, '\n');
  12. }
  13.  
  14. // Play it
  15. Music.Play();
  16. cin.ignore(10000, '\n');
  17. }
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty