00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef _SOUNDRESOURCE_
00019 #define _SOUNDRESOURCE_
00020
00021 #include "resource/Resource.h"
00022 #include "sound/SoundResourceHandle.h"
00023
00024 class SoundResource : public Resource
00025 {
00026 protected:
00027 virtual ResourceHandle* CreateResourceHandle(const void* pBuffer, const unsigned int nBufferSize, ResourceCache* const pResourceCache)
00028 {
00029 return new SoundResourceHandle(pBuffer, nBufferSize, *this, pResourceCache);
00030 }
00031 public:
00032 SoundResource(const std::string& resourceName, const std::string& resourceFile)
00033 :Resource(resourceName, resourceFile)
00034 {
00035 }
00036 };
00037
00038 #endif