mirror of
https://github.com/TTimo/doom3.gpl.git
synced 2026-03-20 08:59:42 +01:00
hello world
This commit is contained in:
61
neo/openal/include/efxlib.h
Normal file
61
neo/openal/include/efxlib.h
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
*/
|
||||
|
||||
#ifndef __EFXLIBH
|
||||
#define __EFXLIBH
|
||||
|
||||
#include "eax4.h"
|
||||
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////
|
||||
// Class definitions.
|
||||
class idSoundEffect
|
||||
{
|
||||
public:
|
||||
idSoundEffect() {
|
||||
};
|
||||
~idSoundEffect() {
|
||||
if ( data && datasize ) {
|
||||
Mem_Free( data );
|
||||
data = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
idStr name;
|
||||
int datasize;
|
||||
void *data;
|
||||
};
|
||||
|
||||
class idEFXFile
|
||||
{
|
||||
private:
|
||||
|
||||
protected:
|
||||
// Protected data members.
|
||||
|
||||
public:
|
||||
// Public data members.
|
||||
|
||||
private:
|
||||
|
||||
public:
|
||||
idEFXFile();
|
||||
~idEFXFile();
|
||||
|
||||
bool FindEffect( idStr &name, idSoundEffect **effect, int *index );
|
||||
bool ReadEffect( idLexer &lexer, idSoundEffect *effect );
|
||||
bool LoadFile( const char *filename, bool OSPath = false );
|
||||
void UnloadFile( void );
|
||||
void Clear( void );
|
||||
|
||||
idList<idSoundEffect *>effects;
|
||||
};
|
||||
///////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // __EFXLIBH
|
||||
|
||||
Reference in New Issue
Block a user