00001 #ifndef __SOUNDMANAGER_H 00002 #define __SOUNDMANAGER_H 00003 00004 class SoundManager 00005 { 00006 private: 00007 int audio_open; 00008 int audio_rate; 00009 int audio_buffers; 00010 Uint16 audio_format; 00011 int audio_channels; 00012 bool audio_support; 00013 int volume; 00014 int maxvolume; 00015 int time; 00016 string playing; 00017 bool music_enabled; 00018 map< string, Mix_Music *> sounds; 00019 public: 00020 SoundManager(); 00021 ~SoundManager(); 00022 Mix_Music *LoadMusicFile( string filename ); 00023 void PlayMusic( string key, bool looping, int initial_volume); 00024 void FadeInMusic( string key, bool looping ); 00025 void FadeOutMusic(); 00026 void EnableMusic( bool _music_enabled ); 00027 void ManageMusic(); 00028 void HaltMusic(); 00029 void ResumeMusic(); 00030 void PauseMusic(); 00031 void VolumeUp(); 00032 }; 00033 00034 #endif // __SOUNDMANAGER_H