24 #ifndef _SOUND_DATA_H_ 25 #define _SOUND_DATA_H_ 93 #define SOUNDFILE_CACHETIME 300000 96 #include <iutil/objreg.h> 97 #include <csutil/csstring.h> 98 #include <csutil/hash.h> 99 #include <iutil/vfs.h> 100 #include <isndsys/ss_data.h> 101 #include <isndsys/ss_loader.h> 123 SoundFile(
const char *newname,
const char *newfilename);
170 bool LoadSoundLib (
const char*
filename, iObjectRegistry* objectReg);
175 void UnloadSoundLib ();
183 bool LoadSoundFile (
const char *
name, csRef<iSndSysData> &
snddata);
190 void UnloadSoundFile (
const char *name);
200 csRef<iSndSysLoader> sndloader;
201 csHash<SoundFile *> soundfiles;
202 csHash<SoundFile *> libsoundfiles;
SoundData is the datakeeper of.
Class that contains the most important informations about a soundfile It contains the name...
csString filename
filename in our vfs (maybe not unique)
csRef< iSndSysData > snddata
data in suitable format
csString name
name of this file/resource MUST be unique
csTicks lasttouch
last time when this SoundFile was used/touched
bool loaded
true if snddata is loaded, false if not
void void Initialize(iObjectRegistry *object_reg)
SoundFile(const char *newname, const char *newfilename)
Constructs a SoundFile.