The AL class implements the actual creation code for linking to the native library OpenAL.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static ALCcontext | context
Current ALCcontext. |
| private static boolean | created
Have we been created? |
| pack-priv static ALCdevice | device
ALCdevice instance. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | create(String
Arguments supplied to native device deviceArguments, int Frequency for mixing output buffer, in units of Hz (Common values include 11025, 22050, and 44100). contextFrequency, int Refresh intervalls, in units of Hz. contextRefresh, boolean Flag, indicating a synchronous context.* contextSynchronized)Creates an OpenAL instance. |
| public static void | |
| public static void | |
| public static void | |
| public static ALCcontext | |
| public static ALCdevice | |
| private static void | |
| public static boolean | |
| private static native void | |
| private static native void | |
| private static native void | |
| private static native void |
| context | back to summary |
|---|---|
| pack-priv static ALCcontext context Current ALCcontext. | |
| created | back to summary |
|---|---|
| private static boolean created Have we been created? | |
| device | back to summary |
|---|---|
| pack-priv static ALCdevice device ALCdevice instance. | |
| AL | back to summary |
|---|---|
| private AL() | |
| create | back to summary |
|---|---|
| public static void create(String deviceArguments, int contextFrequency, int contextRefresh, boolean contextSynchronized) throws LWJGLException Creates an OpenAL instance. Using this constructor will cause OpenAL to open the device using supplied device argument, and create a context using the context values supplied.
| |
| create | back to summary |
|---|---|
public static void create(String deviceArguments, int contextFrequency, int contextRefresh, boolean contextSynchronized, boolean openDevice) throws LWJGLException
| |
| create | back to summary |
|---|---|
| public static void create() throws LWJGLException Creates an OpenAL instance. The empty create will cause OpenAL to open the default device, and create a context using default values. This method used to use default values that the OpenAL implementation chose but this produces unexpected results on some systems; so now it defaults to 44100Hz mixing @ 60Hz refresh. | |
| destroy | back to summary |
|---|---|
| public static void destroy() Exit cleanly by calling destroy. | |
| getContext | back to summary |
|---|---|
public static ALCcontext getContext()
| |
| getDevice | back to summary |
|---|---|
public static ALCdevice getDevice()
| |
| init | back to summary |
|---|---|
| private static void init(String deviceArguments, int contextFrequency, int contextRefresh, boolean contextSynchronized, boolean openDevice) throws LWJGLException | |
| isCreated | back to summary |
|---|---|
public static boolean isCreated()
| |
| nCreate | back to summary |
|---|---|
| private static native void nCreate(String oalPath) throws LWJGLException Native method to create AL instance
| |
| nCreateDefault | back to summary |
|---|---|
| private static native void nCreateDefault() throws LWJGLException Native method to create AL instance from the Mac OS X 10.4 OpenAL framework. It is only defined in the Mac OS X native library. | |
| nDestroy | back to summary |
|---|---|
| private static native void nDestroy() Native method the destroy the AL | |
| resetNativeStubs | back to summary |
|---|---|
| private static native void resetNativeStubs(Class<T> clazz) | |