|
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.pipeline.audio.DefaultAudioPipeline
public class DefaultAudioPipeline
The default implementation of the audio pipeline usable by most applications.
This implementation is targeted towards single threaded architectures. After setting the stages, the render command will not return until everything is complete.
Constructor Summary | |
---|---|
DefaultAudioPipeline()
Create an instance of the pipeline with nothing registered. |
|
DefaultAudioPipeline(AudioCullStage cs,
AudioSortStage ss)
Construct a pipeline with the sort and cull stages provided. |
Method Summary | |
---|---|
boolean |
displayOnly()
Cause the surface to redraw the next frame only, with no processing of the pipeline. |
AudioOutputDevice |
getAudioOutputDevice()
Get the currently registered drawable device instance. |
void |
halt()
Force a halt of the current processing. |
boolean |
render()
Start the pipeline functioning now. |
void |
setAudioOutputDevice(AudioOutputDevice device)
Register a drawing surface that this pipeline will send its output to. |
void |
setCuller(AudioCullStage cs)
Set the cull instance to be used. |
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. |
void |
setRenderableLayers(LayerCullable[] layers,
int numLayers)
Set the set of layers to be used by this pipeline. |
void |
setRequestData(RenderableRequestData data)
Set the request data that should be passed along with the next frame. |
void |
setSorter(AudioSortStage ss)
Set the sorter instance to be used. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultAudioPipeline()
public DefaultAudioPipeline(AudioCullStage cs, AudioSortStage ss)
ss
- The sort stage instance to usecs
- The cull stage instance to useMethod Detail |
---|
public void setAudioOutputDevice(AudioOutputDevice device)
setAudioOutputDevice
in interface AudioRenderPipeline
device
- The audio output device instance to use or replacepublic AudioOutputDevice getAudioOutputDevice()
getAudioOutputDevice
in interface AudioRenderPipeline
public void setErrorReporter(org.j3d.util.ErrorReporter reporter)
setErrorReporter
in interface RenderPipeline
reporter
- The instance to use or nullpublic void setRequestData(RenderableRequestData data)
setRequestData
in interface RenderPipeline
data
- The data instance to pass this next framepublic boolean render()
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.
render
in interface RenderPipeline
public boolean displayOnly()
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.
displayOnly
in interface RenderPipeline
public void setRenderableLayers(LayerCullable[] layers, int numLayers)
If a scene is currently set, and a non-zero number of layers is provided, this will remove the scene and use the layers instead.
setRenderableLayers
in interface RenderPipeline
layers
- The collection of layers, in order, to rendernumLayers
- The number of valid layers to usepublic void halt()
halt
in interface RenderPipeline
public void setSorter(AudioSortStage ss)
ss
- The sorter instance to use or nullpublic void setCuller(AudioCullStage cs)
cs
- The cull instance to use or null
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |