00001 00002 /* Copyright 2009 Diego Barrios Romero 00003 * 00004 * This file is part of DSMemorizer. 00005 * 00006 * DSMemorizer is free software: you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation, either version 3 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * DSMemorizer distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with DSMemorizer. If not, see <http://www.gnu.org/licenses/>. 00018 */ 00019 00020 #ifndef SOUNDHANDLER_H_ 00021 #define SOUNDHANDLER_H_ 00022 00024 class SoundHandler 00025 { 00026 public: 00028 enum SFX 00029 { 00030 ACTION, 00031 THEME 00032 }; 00033 00035 SoundHandler () {} 00037 void Init (); 00039 void PlayEffect (SFX sfx); 00041 void StopEffect (SFX sfx); 00044 void UnloadEffect (SFX sfx); 00047 void UnloadEffects (); 00048 00050 ~SoundHandler(); 00051 private: 00053 mm_sfxhand* sfx_handlers_; 00055 bool* loaded_sfx_; 00057 mm_sound_effect* sfx_available_; 00058 }; 00059 00060 00061 00062 #endif // SOUNDHANDLER_H_
1.5.8