Skip to content

Commit

Permalink
Report some ALC extensions (enumeration, capture).
Browse files Browse the repository at this point in the history
Do it even for the NULL device.
  • Loading branch information
icculus committed Mar 23, 2018
1 parent 9c85cdb commit 8230663
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions mojoal.c
Expand Up @@ -834,7 +834,8 @@ ALCenum alcGetError(ALCdevice *device)
ALCboolean alcIsExtensionPresent(ALCdevice *device, const ALCchar *extname)
{
FIXME("write me");
if (SDL_strcasecmp(extname, "ALC_EXT_capture") == 0) return ALC_TRUE;
if (SDL_strcasecmp(extname, "ALC_ENUMERATION_EXT") == 0) return ALC_TRUE;
if (SDL_strcasecmp(extname, "ALC_EXT_CAPTURE") == 0) return ALC_TRUE;
return ALC_FALSE;
}

Expand Down Expand Up @@ -963,12 +964,8 @@ const ALCchar *alcGetString(ALCdevice *device, ALCenum param)
{
switch (param) {
case ALC_EXTENSIONS:
if (!device) {
set_alc_error(NULL, ALC_INVALID_DEVICE);
} else {
FIXME("add some extensions. :)");
return "ALC_EXT_CAPTURE";
}
FIXME("add some extensions. :)");
return "ALC_ENUMERATION_EXT ALC_EXT_CAPTURE";
break;

/* You open the default SDL device with a NULL device name, but that is how OpenAL
Expand Down

0 comments on commit 8230663

Please sign in to comment.