Top Fields Constructors Methods
com.jogamp.openal.util

public final Class ALut

extends Object
Class Inheritance
Imports
java.io.*, java.nio.ByteBuffer, com.jogamp.openal.*

Author
Athomas Goldberg

Field Summary

Modifier and TypeField and Description
private static ALC
private static ALCcontext
private static ALCdevice
private static Thread

Constructor Summary

AccessConstructor and Description
private
ALut()

Method Summary

Modifier and TypeMethod and Description
public static synchronized void
alutExit()

Shuts down the OpenAL Utility Toolkit; releases and destroys the internal OpenAL context and closes the output device.

public static synchronized void
alutInit()

Initializes the OpenAL Utility Toolkit, creates an OpenAL context and makes it current on the current thread.

public static void
alutLoadWAVFile(final String fileName, final int[] format, final ByteBuffer[] data, final int[] size, final int[] freq, final int[] loop)

public static void
alutLoadWAVFile(InputStream stream, final int[] format, final ByteBuffer[] data, final int[] size, final int[] freq, final int[] loop)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

alcback to summary
private static ALC alc
contextback to summary
private static ALCcontext context
deviceback to summary
private static ALCdevice device
initializingThreadback to summary
private static Thread initializingThread

Constructor Detail

ALutback to summary
private ALut()

Method Detail

alutExitback to summary
public static synchronized 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.

alutInitback to summary
public static synchronized 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.

alutLoadWAVFileback to summary
public static void alutLoadWAVFile(final String fileName, final int[] format, final ByteBuffer[] data, final int[] size, final int[] freq, final int[] loop) throws ALException
alutLoadWAVFileback to summary
public static void alutLoadWAVFile(InputStream stream, final int[] format, final ByteBuffer[] data, final int[] size, final int[] freq, final int[] loop) throws ALException