Skip to content

Commit

Permalink
Fixed to compile without device enumeration support.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 30, 2005
1 parent 205d0e3 commit 7e4a4e9
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions osx/alContext.c
Expand Up @@ -148,23 +148,29 @@ ALCAPI const ALubyte* ALCAPIENTRY alcGetString(ALCdevice *device, ALCenum param
else if (param == ALC_DEFAULT_DEVICE_SPECIFIER)
return(__alcDetermineDefaultDeviceName(AL_TRUE));

#if SUPPORTS_ALC_ENUMERATION_EXT
else if (param == ALC_DEVICE_SPECIFIER)
return(__alcDetermineDeviceNameList(AL_TRUE));
#else
else if (param == ALC_DEVICE_SPECIFIER)
{
#if SUPPORTS_ALC_ENUMERATION_EXT
return(__alcDetermineDeviceNameList(AL_TRUE));
#else
__alcSetError(NULL, ALC_INVALID_DEVICE);
return(NULL);
#endif
} // else if
#endif

#if SUPPORTS_ALC_EXT_CAPTURE
else if (param == ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER)
return(__alcDetermineDefaultDeviceName(AL_FALSE));

else if (param == ALC_CAPTURE_DEVICE_SPECIFIER)
{
#if SUPPORTS_ALC_ENUMERATION_EXT
return(__alcDetermineDeviceNameList(AL_FALSE));
#else
__alcSetError(NULL, ALC_INVALID_DEVICE);
return(NULL);
#endif
} // else if
#endif

__alcSetError((ALdevice *) device, ALC_INVALID_ENUM);
Expand Down

0 comments on commit 7e4a4e9

Please sign in to comment.