00001 00010 #ifndef __Resource_Sound_H__ 00011 #define __Resource_Sound_H__ 00012 00013 // Includes 00014 #include "StringId.h" 00015 00016 // Forward declares 00017 class Sound; 00018 class Filename; 00019 00020 // Resource_Sound 00021 class Resource_Sound 00022 { 00023 public: 00024 Resource_Sound(); 00025 00026 Resource_Sound(const Filename& filename); 00027 00028 Resource_Sound(const char* filename); 00029 00030 Resource_Sound(StringId filename); 00031 00032 ~Resource_Sound(); 00033 00034 Resource_Sound(const Resource_Sound& resource); 00035 00036 const Resource_Sound& operator =(const Resource_Sound& resource); 00037 00038 const Sound* GetSound() const; 00039 00040 void Play(float priority = 0, bool looping = false); 00041 00042 private: 00043 const Sound* sound_; 00044 }; 00045 00046 #endif /* __Resource_Sound_H__ */ 00047