Class OALHandle
java.lang.Object
com.blackrook.gloop.openal.OALHandle
- Direct Known Subclasses:
OALContext, OALDevice
Generic OpenAL handle type.
Essentially an object that is not an integer id - this wraps a memory address.
- Author:
- Matthew Tropiano
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
OALHandle
protected OALHandle()Allocates a new OpenAL handle.
-
-
Method Details
-
getHandle
public abstract long getHandle()- Returns:
- this handle's OpenAL address handle.
-
isCreated
public abstract boolean isCreated()- Returns:
- true if this handle was allocated, false if not.
-
destroy
public abstract void destroy()Destroys this handle. Does nothing if already destroyed.- Throws:
SoundException- if a problem occurs during free.
-
hashCode
-
equals
-
equals
Tests if this OpenAL handle equals the provided one.- Parameters:
handle- the handle to test.- Returns:
- true if so, false if not.
-
finalize
-
toString
-