Class OALDevice
java.lang.Object
com.blackrook.gloop.openal.OALHandle
com.blackrook.gloop.openal.OALDevice
A device handle in OpenAL. Represents the output sound device.
Also creates its capabilities (see getCapabilities()).
- Author:
- Matthew Tropiano
-
Method Summary
Modifier and TypeMethodDescriptioncreateContext(OALContext.AttributeValue... attributes) Creates a rendering context for a device.voiddestroy()Destroys this handle.protected booleanfree()voidConvenience method for checking for an OpenAL error and throwing a SoundException if an error is raised.longgetName()boolean
-
Method Details
-
getName
- Returns:
- this device's name, or "DEFAULT" if this represents the default device.
-
getCapabilities
- Returns:
- this device's OpenAL capabilities.
-
getHandle
-
isCreated
-
destroy
-
free
protected boolean free() -
getContextError
public void getContextError()Convenience method for checking for an OpenAL error and throwing a SoundException if an error is raised.- Throws:
SoundException- if an error was found.
-
createContext
Creates a rendering context for a device.- Parameters:
attributes- the optional context attributes.- Returns:
- the newly created context.
- Throws:
SoundSystemException- if the context can't be created or there is no current context selected.
-