2 * OpenAL cross platform audio library
3 * Copyright (C) 1999-2007 by authors.
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
18 * Or go to http://www.gnu.org/copyleft/lgpl.html
31 #include "alAuxEffectSlot.h"
38 const struct EffectList EffectList
[] = {
39 { "eaxreverb", EAXREVERB
, "AL_EFFECT_EAXREVERB", AL_EFFECT_EAXREVERB
},
40 { "reverb", REVERB
, "AL_EFFECT_REVERB", AL_EFFECT_REVERB
},
41 { "autowah", AUTOWAH
, "AL_EFFECT_AUTOWAH", AL_EFFECT_AUTOWAH
},
42 { "chorus", CHORUS
, "AL_EFFECT_CHORUS", AL_EFFECT_CHORUS
},
43 { "compressor", COMPRESSOR
, "AL_EFFECT_COMPRESSOR", AL_EFFECT_COMPRESSOR
},
44 { "distortion", DISTORTION
, "AL_EFFECT_DISTORTION", AL_EFFECT_DISTORTION
},
45 { "echo", ECHO
, "AL_EFFECT_ECHO", AL_EFFECT_ECHO
},
46 { "equalizer", EQUALIZER
, "AL_EFFECT_EQUALIZER", AL_EFFECT_EQUALIZER
},
47 { "flanger", FLANGER
, "AL_EFFECT_FLANGER", AL_EFFECT_FLANGER
},
48 { "modulator", MODULATOR
, "AL_EFFECT_RING_MODULATOR", AL_EFFECT_RING_MODULATOR
},
49 { "dedicated", DEDICATED
, "AL_EFFECT_DEDICATED_LOW_FREQUENCY_EFFECT", AL_EFFECT_DEDICATED_LOW_FREQUENCY_EFFECT
},
50 { "dedicated", DEDICATED
, "AL_EFFECT_DEDICATED_DIALOGUE", AL_EFFECT_DEDICATED_DIALOGUE
},
51 { NULL
, 0, NULL
, (ALenum
)0 }
55 AL_API ALboolean AL_APIENTRY
alIsExtensionPresent(const ALchar
*extName
)
57 ALboolean ret
= AL_FALSE
;
62 context
= GetContextRef();
63 if(!context
) return AL_FALSE
;
66 SET_ERROR_AND_GOTO(context
, AL_INVALID_VALUE
, done
);
68 len
= strlen(extName
);
69 ptr
= context
->ExtensionList
;
72 if(strncasecmp(ptr
, extName
, len
) == 0 &&
73 (ptr
[len
] == '\0' || isspace(ptr
[len
])))
78 if((ptr
=strchr(ptr
, ' ')) != NULL
)
82 } while(isspace(*ptr
));
87 ALCcontext_DecRef(context
);
92 AL_API ALvoid
* AL_APIENTRY
alGetProcAddress(const ALchar
*funcName
)
96 return alcGetProcAddress(NULL
, funcName
);
99 AL_API ALenum AL_APIENTRY
alGetEnumValue(const ALchar
*enumName
)
103 return alcGetEnumValue(NULL
, enumName
);