00001 #ifndef __MUSIC_H_ 00002 #define __MUSIC_H_ 00003 00004 #include <SDL/SDL_mixer.h> 00005 #include <iostream> 00006 #include <string> 00007 00008 using namespace std; 00009 00010 class Music { 00011 public: 00012 Music(); 00013 Music(string fileName); 00014 ~Music(); 00015 bool Play(int loops); 00016 bool Stop(); 00017 bool IsPlaying(); 00018 private: 00019 Mix_Music *music; 00020 string name; 00021 bool playing; 00022 }; 00023 00024 #endif 00025