expose isEfxSupported
This commit is contained in:
parent
6cdca16f80
commit
5489758618
|
@ -58,14 +58,11 @@ public final class EFXUtil {
|
||||||
* @return True if ALC_EXT_EFX is supported, false if not.
|
* @return True if ALC_EXT_EFX is supported, false if not.
|
||||||
* @throws OpenALException If OpenAL has not been created yet.
|
* @throws OpenALException If OpenAL has not been created yet.
|
||||||
*/
|
*/
|
||||||
private static boolean isEfxSupported() {
|
public static boolean isEfxSupported() {
|
||||||
if (!AL.isCreated()) {
|
if (!AL.isCreated()) {
|
||||||
throw new OpenALException("OpenAL has not been created.");
|
throw new OpenALException("OpenAL has not been created.");
|
||||||
}
|
}
|
||||||
if (ALC10.alcIsExtensionPresent(AL.getDevice(), EFX10.ALC_EXT_EFX_NAME)) {
|
return ALC10.alcIsExtensionPresent(AL.getDevice(), EFX10.ALC_EXT_EFX_NAME);
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue