|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.aviatrix3d.output.audio.OpenALAudioDevice
public class OpenALAudioDevice
Implementation of the most basic audio device, supporting the minimal number of features using OpenAL.
Field Summary | |
---|---|
protected RenderableRequestData |
otherDataRequests
Request object for deletions, shader stuff etc |
Constructor Summary | |
---|---|
OpenALAudioDevice()
Construct a surface that requires the given set of capabilities. |
Method Summary | |
---|---|
void |
dispose()
Instruct this surface that you have finished with the resources needed and to dispose all rendering resources. |
void |
disposeSingleThreadResources()
If the output device is marked as single threaded, this instructs the device that the current rendering thread has exited. |
boolean |
draw(ProfilingData profilingData)
Instruct the surface to draw the collected set of nodes now. |
void |
enableSingleThreaded(boolean state)
Notification that this surface is being drawn to with a single thread. |
java.lang.Object |
getSurfaceObject()
Get the underlying object that this surface is rendered to. |
boolean |
isDisposed()
Check to see the disposal state of the surface. |
void |
setDrawableObjects(RenderableRequestData otherData,
AudioInstructions commands)
Update the list of items to be rendered to the current list. |
void |
setErrorReporter(org.j3d.util.ErrorReporter reporter)
Register an error reporter with the engine so that any errors generated by the node's internals can be reported in a nice, pretty fashion. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected RenderableRequestData otherDataRequests
Constructor Detail |
---|
public OpenALAudioDevice()
Method Detail |
---|
public void setDrawableObjects(RenderableRequestData otherData, AudioInstructions commands)
setDrawableObjects
in interface AudioOutputDevice
otherData
- data to be processed before the renderingcommands
- The list of drawable surfaces to renderpublic void setErrorReporter(org.j3d.util.ErrorReporter reporter)
setErrorReporter
in interface OutputDevice
reporter
- The instance to use or nullpublic boolean draw(ProfilingData profilingData)
The return value indicates success or failure in the ability to render this frame. Typically it will indicate failure if the underlying surface has been disposed of, either directly through the calling of the method on this interface, or through an internal check mechanism. If failure is indicated, then check to see if the surface has been disposed of and discontinue rendering if it has.
draw
in interface OutputDevice
profilingData
- The timing and load data
public java.lang.Object getSurfaceObject()
getSurfaceObject
in interface OutputDevice
public void dispose()
dispose
in interface OutputDevice
public boolean isDisposed()
dispose()
method has been called or an internal dispose handler
has detected the underlying surface is no longer valid to draw to.
isDisposed
in interface OutputDevice
public void enableSingleThreaded(boolean state)
This method should never be called by end user code. It is purely for
the purposes of the RenderManager
to inform the device about what state it can expect.
enableSingleThreaded
in interface OutputDevice
state
- true if the device can expect single threaded behaviourpublic void disposeSingleThreadResources()
disposeSingleThreadResources
in interface OutputDevice
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |