com.jogamp.openal.util
Class ALut
java.lang.Object
com.jogamp.openal.util.ALut
public final class ALut
- extends Object
- Author:
- Athomas Goldberg
Method Summary |
static void |
alutExit()
Shuts down the OpenAL Utility Toolkit; releases and destroys the
internal OpenAL context and closes the output device. |
static void |
alutInit()
Initializes the OpenAL Utility Toolkit, creates an OpenAL
context and makes it current on the current thread. |
static void |
alutLoadWAVFile(InputStream stream,
int[] format,
ByteBuffer[] data,
int[] size,
int[] freq,
int[] loop)
|
static void |
alutLoadWAVFile(String fileName,
int[] format,
ByteBuffer[] data,
int[] size,
int[] freq,
int[] loop)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
alutInit
public static void alutInit()
throws ALException
- Initializes the OpenAL Utility Toolkit, creates an OpenAL
context and makes it current on the current thread. The ALut may
only be initialized on one thread at any given time.
- Throws:
ALException
alutExit
public static void alutExit()
throws ALException
- Shuts down the OpenAL Utility Toolkit; releases and destroys the
internal OpenAL context and closes the output device. Must be
called from the same thread as alutInit(). Most applications
should not need to call this; only those which wish to toggle
sound on / off at run time by initializing and un-initializing
OpenAL need to call it.
- Throws:
ALException
alutLoadWAVFile
public static void alutLoadWAVFile(String fileName,
int[] format,
ByteBuffer[] data,
int[] size,
int[] freq,
int[] loop)
throws ALException
- Throws:
ALException
alutLoadWAVFile
public static void alutLoadWAVFile(InputStream stream,
int[] format,
ByteBuffer[] data,
int[] size,
int[] freq,
int[] loop)
throws ALException
- Throws:
ALException