28 #include "../idlib/precompiled.h"
88 if ( token ==
"reverb" ) {
100 src.
Error(
"idEFXFile::ReadEffect: { not found, found %s", token.
c_str() );
107 src.
Error(
"idEFXFile::ReadEffect: EOF without closing brace" );
112 if ( token ==
"}" ) {
114 effect->
data = (
void * )reverb;
119 if ( token ==
"environment" ) {
122 }
else if ( token ==
"environment size" ) {
124 }
else if ( token ==
"environment diffusion" ) {
126 }
else if ( token ==
"room" ) {
128 }
else if ( token ==
"room hf" ) {
130 }
else if ( token ==
"room lf" ) {
132 }
else if ( token ==
"decay time" ) {
134 }
else if ( token ==
"decay hf ratio" ) {
136 }
else if ( token ==
"decay lf ratio" ) {
138 }
else if ( token ==
"reflections" ) {
140 }
else if ( token ==
"reflections delay" ) {
142 }
else if ( token ==
"reflections pan" ) {
146 }
else if ( token ==
"reverb" ) {
148 }
else if ( token ==
"reverb delay" ) {
150 }
else if ( token ==
"reverb pan" ) {
154 }
else if ( token ==
"echo time" ) {
156 }
else if ( token ==
"echo depth" ) {
158 }
else if ( token ==
"modulation time" ) {
160 }
else if ( token ==
"modulation depth" ) {
162 }
else if ( token ==
"air absorption hf" ) {
164 }
else if ( token ==
"hf reference" ) {
166 }
else if ( token ==
"lf reference" ) {
168 }
else if ( token ==
"room rolloff factor" ) {
170 }
else if ( token ==
"flags" ) {
175 src.
Error(
"idEFXFile::ReadEffect: Invalid parameter in reverb definition" );
184 src.
Error(
"idEFXFile::ReadEffect: Unknown effect definition" );
210 src.
Error(
"idEFXFile::LoadFile: Unknown file version" );
unsigned long GetUnsignedLongValue(void)
float flEnvironmentDiffusion
float ParseFloat(bool *errorFlag=NULL)
int ReadTokenOnLine(idToken *token)
unsigned long ulEnvironment
EAXVECTOR vReflectionsPan
void Error(const char *str,...) id_attribute((format(printf
bool LoadFile(const char *filename, bool OSPath=false)
float flRoomRolloffFactor
void DeleteContents(bool clear)
int ExpectTokenString(const char *string)
int Append(const type &obj)
bool ReadEffect(idLexer &lexer, idSoundEffect *effect)
const char * c_str(void) const
void * Mem_Alloc(const int size)
idList< idSoundEffect * > effects
int ReadToken(idToken *token)
struct _EAXREVERBPROPERTIES EAXREVERBPROPERTIES
bool FindEffect(idStr &name, idSoundEffect **effect, int *index)
int LoadFile(const char *filename, bool OSPath=false)