expose isEfxSupported

This commit is contained in:
Brian Matzon 2010-05-24 22:34:59 +00:00
parent 6cdca16f80
commit 5489758618
1 changed files with 2 additions and 5 deletions

View File

@ -58,14 +58,11 @@ public final class EFXUtil {
* @return True if ALC_EXT_EFX is supported, false if not.
* @throws OpenALException If OpenAL has not been created yet.
*/
private static boolean isEfxSupported() {
public static boolean isEfxSupported() {
if (!AL.isCreated()) {
throw new OpenALException("OpenAL has not been created.");
}
if (ALC10.alcIsExtensionPresent(AL.getDevice(), EFX10.ALC_EXT_EFX_NAME)) {
return true;
}
return false;
return ALC10.alcIsExtensionPresent(AL.getDevice(), EFX10.ALC_EXT_EFX_NAME);
}
/**