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.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 * Or go to http://www.gnu.org/copyleft/lgpl.html
31 #include "alAuxEffectSlot.h"
38 AL_API ALboolean AL_APIENTRY
alIsExtensionPresent(const ALchar
*extName
)
40 ALboolean ret
= AL_FALSE
;
45 context
= GetContextRef();
46 if(!context
) return AL_FALSE
;
49 SETERR_GOTO(context
, AL_INVALID_VALUE
, done
, "NULL pointer");
51 len
= strlen(extName
);
52 ptr
= context
->ExtensionList
;
55 if(strncasecmp(ptr
, extName
, len
) == 0 &&
56 (ptr
[len
] == '\0' || isspace(ptr
[len
])))
61 if((ptr
=strchr(ptr
, ' ')) != NULL
)
65 } while(isspace(*ptr
));
70 ALCcontext_DecRef(context
);
75 AL_API ALvoid
* AL_APIENTRY
alGetProcAddress(const ALchar
*funcName
)
79 return alcGetProcAddress(NULL
, funcName
);
82 AL_API ALenum AL_APIENTRY
alGetEnumValue(const ALchar
*enumName
)
86 return alcGetEnumValue(NULL
, enumName
);