doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
efxlib.h
Go to the documentation of this file.
1 /*
2 */
3 
4 #ifndef __EFXLIBH
5 #define __EFXLIBH
6 
7 #include "eax4.h"
8 
9 
10 
11 
13 // Class definitions.
15 {
16 public:
18  };
20  if ( data && datasize ) {
21  Mem_Free( data );
22  data = NULL;
23  }
24  }
25 
27  int datasize;
28  void *data;
29 };
30 
31 class idEFXFile
32 {
33 private:
34 
35 protected:
36  // Protected data members.
37 
38 public:
39  // Public data members.
40 
41 private:
42 
43 public:
44  idEFXFile();
45  ~idEFXFile();
46 
47  bool FindEffect( idStr &name, idSoundEffect **effect, int *index );
48  bool ReadEffect( idLexer &lexer, idSoundEffect *effect );
49  bool LoadFile( const char *filename, bool OSPath = false );
50  void UnloadFile( void );
51  void Clear( void );
52 
54 };
56 
57 
58 
59 
60 #endif // __EFXLIBH
61 
idStr name
Definition: efxlib.h:26
void UnloadFile(void)
Definition: Lexer.h:137
bool LoadFile(const char *filename, bool OSPath=false)
GLuint index
Definition: glext.h:3476
~idSoundEffect()
Definition: efxlib.h:19
#define NULL
Definition: Lib.h:88
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: glext.h:2853
void Mem_Free(void *ptr)
Definition: Heap.cpp:1087
int datasize
Definition: efxlib.h:27
idSoundEffect()
Definition: efxlib.h:17
const GLcharARB * name
Definition: glext.h:3629
Definition: Str.h:116
bool ReadEffect(idLexer &lexer, idSoundEffect *effect)
Definition: snd_efxfile.cpp:81
idList< idSoundEffect * > effects
Definition: efxlib.h:53
void * data
Definition: efxlib.h:28
bool FindEffect(idStr &name, idSoundEffect **effect, int *index)
Definition: snd_efxfile.cpp:63
void Clear(void)
Definition: snd_efxfile.cpp:45