Aviatrix3D
2.1.0

org.j3d.aviatrix3d.pipeline.audio
Class NullAudioSortStage

java.lang.Object
  extended by org.j3d.aviatrix3d.pipeline.audio.NullAudioSortStage
All Implemented Interfaces:
AudioSortStage

public class NullAudioSortStage
extends java.lang.Object
implements AudioSortStage

Implementation of the sort stage that does nothing.

The sort stage just takes the given nodes and expands them into an array renders and then immediately pops the node. No sorting on output is done.

Version:
$Revision: 2.4 $
Author:
Alan Hudson

Constructor Summary
NullAudioSortStage()
          Create an empty sorting stage that initialises the internal structures to assume that there is a minumum number of surfaces, both on and offscreen.
 
Method Summary
 void halt()
          Force a halt of the current processing.
 void setSortedAudioReceiver(SortedAudioReceiver sgr)
          Register a reciever for the output of the sorter.
 void sort(RenderableRequestData otherData, AudioEnvironmentData data, AudioCullOutputDetails[] nodes, int numNodes)
          Sort the listing of nodes in the given array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullAudioSortStage

public NullAudioSortStage()
Create an empty sorting stage that initialises the internal structures to assume that there is a minumum number of surfaces, both on and offscreen.

Method Detail

sort

public void sort(RenderableRequestData otherData,
                 AudioEnvironmentData data,
                 AudioCullOutputDetails[] nodes,
                 int numNodes)
Sort the listing of nodes in the given array. Do not return until the sort has been completed. If the sceneParent is the main scene graph and not an offscreen texture, then that spot should be set to null in the list.

Specified by:
sort in interface AudioSortStage
Parameters:
otherData - data to be processed before the rendering
data - External rendering environment information
nodes - List of processed nodes based on the scene they came from
numNodes - Number of nodes in each scene

setSortedAudioReceiver

public void setSortedAudioReceiver(SortedAudioReceiver sgr)
Register a reciever for the output of the sorter. If the value is null, it will clear the currently set receiver.

Specified by:
setSortedAudioReceiver in interface AudioSortStage
Parameters:
sgr - The receiver instance to add or null

halt

public void halt()
Force a halt of the current processing. Any processing in progress should exit immediately. Used to abort the current scene processing due to application shutdown or complete scene replacement.

Specified by:
halt in interface AudioSortStage

Aviatrix3D
2.1.0

Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - 2009 j3d.org