public class ALFactory extends Object
Select preferred OpenAL native library type via system properties,
i.e. System-OpenAL or bundled Soft-OpenAL.
If the preferred choice fails, implementation falls back to the other.
-Djoal.openal.lib=auto Prefer System-OpenAL over bundled Soft-OpenAL for OSX. Prefer bundled Soft-OpenAL over System-OpenAL for all others. This is the default. -Djoal.openal.lib=system Prefer System-OpenAL over bundled Soft-OpenAL for all. -Djoal.openal.lib=soft Prefer bundled Soft-OpenAL over System-OpenAL for all.Note: You may use the 'jnlp.' prefix, allowing using above property names w/ Applets and WebStart, e.g. 'jnlp.joal.openal.lib=system'.
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG |
static boolean |
PREFER_SYSTEM_OPENAL
If true, prefer System-OpenAL, otherwise bundled Soft-OpenAL (default).
|
Modifier and Type | Method and Description |
---|---|
static AL |
getAL()
Get the default AL object.
|
static ALC |
getALC()
Get the default ALC object.
|
static ALExt |
getALExt()
Get the default ALExt object.
|
static boolean |
getPreferSystemOpenAL()
If the system property
joal.SystemOpenAL is set |
public static final boolean DEBUG
public static final boolean PREFER_SYSTEM_OPENAL
public static boolean getPreferSystemOpenAL() throws ALException
joal.SystemOpenAL
is setALException
public static AL getAL() throws ALException
ALException
public static ALC getALC() throws ALException
ALException
public static ALExt getALExt() throws ALException
ALException