00001 /* Crown and Cutlass 00002 * SoundResource Header 00003 */ 00004 00005 #if !defined ( _SOUND_RESOURCE_H_ ) 00006 #define _SOUND_RESOURCE_H_ 00007 00008 #include <string> 00009 #include <AL/al.h> 00010 #include "IResource.h" 00011 00012 class SoundResource: public IResource { 00013 public: 00014 SoundResource(std::string name, std::string filename); 00015 ~SoundResource(); 00016 00017 std::string GetType(); 00018 00019 void Load(); 00020 void Unload(); 00021 00022 ALuint GetBuffer(); 00023 00024 static const std::string s_type; 00025 00026 private: 00027 std::string m_filename; 00028 ALuint m_buffer; 00029 }; 00030 00031 #endif
1.4.7