Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.lwjgl.openal
Class AL

    java.lang.Object
      org.lwjgl.openal.AL

    public final class AL

extends java.lang.Object

This is the OpenAL class. It extends the latest core.

Version:
  $Revision: 2782 $ $Id: AL.java 2782 2007-04-19 22:24:36 +0000 (to, 19 apr 2007) matzon $
Author:
  Brian Matzon

Field Summary
`protected static ALCcontext` | `context` Current ALCcontext.
`protected static ALCdevice` | `device` ALCdevice instance.

Method Summary
`static void` | `create()` Creates an OpenAL instance.
`static void` | `create(java.lang.String deviceArguments, int contextFrequency, int contextRefresh, boolean contextSynchronized)` Creates an OpenAL instance.
`static void` | `destroy()` Exit cleanly by calling destroy.
`static ALCcontext` | `getContext()`
`static ALCdevice` | `getDevice()`
`static boolean` | `isCreated()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### device

    protected static ALCdevice device

  ALCdevice instance.

### context

    protected static ALCcontext context

  Current ALCcontext.

Method Detail

### isCreated

    public static boolean isCreated()

  Returns:
    true if AL has been created

### create

    public static void create(java.lang.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.

  Parameters:
    `deviceArguments` - Arguments supplied to native device
    `contextFrequency` - Frequency for mixing output buffer, in units of Hz (Common values include 11025, 22050, and 44100).
    `contextRefresh` - Refresh intervalls, in units of Hz.
    `contextSynchronized` - Flag, indicating a synchronous context.*
  Throws:
    `LWJGLException`

### create

    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.

  Throws:
    `LWJGLException`

### destroy

    public static void destroy()

  Exit cleanly by calling destroy.

### getContext

    public static ALCcontext getContext()

  Returns:
    handle to the default AL context.

### getDevice

    public static ALCdevice getDevice()

  Returns:
    handle to the default AL device.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2002-2006 lwjgl.org. All Rights Reserved.