Package com.jogamp.openal.sound3d
Class Context
- java.lang.Object
-
- com.jogamp.openal.sound3d.Context
-
public class Context extends Object
This class provides a Sound3D Context associated with a specified device.- Author:
- Athomas Goldberg
-
-
Constructor Summary
Constructors Constructor Description Context(ALCcontext realContext, Device device)Context(Device device)Creates a new Context for a specified device.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()destroys this context freeing its resources.intgetALCError()ALCcontextgetALContext()Returns the OpenAL context.DevicegetDevice()Gets the device associated with this context.booleanisValid()Returns whethergetALContext()is valid, i.e.booleanmakeCurrent()Makes this context current.booleanrelease()Release this context.voidsuspend()Suspend this context
-
-
-
Constructor Detail
-
Context
public Context(ALCcontext realContext, Device device)
-
Context
public Context(Device device)
Creates a new Context for a specified device.- Parameters:
device- The device the Context is being created for.
-
-
Method Detail
-
getALContext
public ALCcontext getALContext()
Returns the OpenAL context.
-
isValid
public boolean isValid()
Returns whethergetALContext()is valid, i.e. not null, e.g. notdestroy()'ed.
-
getALCError
public int getALCError()
-
destroy
public void destroy()
destroys this context freeing its resources.
-
makeCurrent
public boolean makeCurrent()
Makes this context current.
-
release
public boolean release()
Release this context.
-
suspend
public void suspend()
Suspend this context
-
getDevice
public Device getDevice()
Gets the device associated with this context.- Returns:
- the device associated with this context.
-
-