24 #ifndef _SOUND_DATA_CACHE_H_ 25 #define _SOUND_DATA_CACHE_H_ 32 #include <iutil/objreg.h> 33 #include <csutil/csstring.h> 34 #include <csutil/hash.h> 35 #include <iutil/vfs.h> 36 #include <isndsys/ss_data.h> 37 #include <isndsys/ss_loader.h> 39 #define DEFAULT_SOUNDFILE_CACHETIME 300000 59 SoundFile(
const char* newName,
const char* newFileName);
130 bool LoadSoundLib(
const char*
fileName, iObjectRegistry* objectReg);
135 void UnloadSoundLib();
150 bool GetSoundData(
const char*
name, csRef<iSndSysData> &
sndData);
157 void UnloadSoundFile(
const char* name);
169 csRef<iSndSysLoader> sndLoader;
170 csHash<SoundFile*, csString> libSoundFiles;
171 csHash<SoundFile*, csString> loadedSoundFiles;
182 SoundFile* LoadSoundFile(
const char* name);
185 #endif // _SOUND_DATA_CACHE_H_
Class that contains the most important informations about a soundfile It contains the name...
csTicks lastTouch
Last time when this SoundFile was used/touched.
csString name
name of this file/resource MUST be unique
SoundDataCache is the data-keeper of SoundSystemManager.
void void Initialize(iObjectRegistry *object_reg)
csString fileName
File's name in our vfs. It doesn't need to be unique.
SoundFile(const char *newname, const char *newfilename)
Constructs a SoundFile.
csRef< iSndSysData > sndData
Data in suitable format.