Class OALSystem
java.lang.Object
com.blackrook.gloop.openal.OALSystem
This class is a central sound system class designed to manage an OpenAL instance and environment.
- Author:
- Matthew Tropiano
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA way to lock a current context down for a series of calls to OpenAL. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAllocates a new default device.createDevice(String name) Creates a new device.voidfinalize()voidshutDown()Runs all Shut Down hooks, destroys all contexts and closes all open devices.
-
Constructor Details
-
OALSystem
public OALSystem()Creates a new OpenAL Sound System.
-
-
Method Details
-
createDevice
Allocates a new default device.- Returns:
- the newly allocated device.
- Throws:
SoundSystemException- if the device can't be created.- See Also:
-
createDevice
Creates a new device.- Parameters:
name- the name of the device (nullfor default).- Returns:
- the newly allocated device.
- Throws:
SoundSystemException- if the device can't be created.
-
shutDown
public void shutDown()Runs all Shut Down hooks, destroys all contexts and closes all open devices. -
finalize
-