00001 #pragma once
00002
00009 class Music
00010 {
00011
00012 private:
00013
00014 sf::Music m_Music;
00015
00016 PausableClock m_Timer;
00017
00018 CString m_FileName;
00019
00020 public:
00021
00025 Music();
00026
00031 bool Load(const CString& _FileName);
00032
00037 bool Load(const char* _FileName);
00038
00042 void Play();
00043
00047 void Stop();
00048
00052 bool Stopped() const;
00053
00057 bool Paused() const;
00058
00062 bool Playing() const;
00063
00067 bool Ended();
00068
00073 const CString& GetFileName() const;
00074
00079 void SetVolume(float _Volume);
00080
00081 };