j3d.org Aviatrix3D

org.j3d.aviatrix3d
Class BackgroundSound

java.lang.Object
  extended byorg.j3d.aviatrix3d.SceneGraphObject
      extended byorg.j3d.aviatrix3d.Node
          extended byorg.j3d.aviatrix3d.Leaf
              extended byorg.j3d.aviatrix3d.Sound
                  extended byorg.j3d.aviatrix3d.BackgroundSound
All Implemented Interfaces:
AudioRenderable, AudioUpdateListener

public class BackgroundSound
extends Sound

A BackgroundSound class whichs emits a sound which doesn't change by distance or orientation.

Version:
$Revision: 1.3 $
Author:
Alan Hudson

Field Summary
 
Fields inherited from class org.j3d.aviatrix3d.Sound
buffer, dataChanged, format, freq, loop, paramsChanged, paused, pitch, playChanged, playing, seq, soundSource
 
Fields inherited from class org.j3d.aviatrix3d.Node
bounds, implicitBounds, INVALID_BOUNDS, parent
 
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject
alive, updateHandler, WRITE_TIMING_MSG
 
Constructor Summary
BackgroundSound()
          Creates a sound.
 
Method Summary
 boolean isEnabled()
          State check to see whether the sound is enabled.
 void postRender(net.java.games.joal.AL al)
          This method is called after a node has been rendered.
 void render(net.java.games.joal.AL al, javax.vecmath.Matrix4f transform)
          This method is called to render this node.
 
Methods inherited from class org.j3d.aviatrix3d.Sound
audioUpdated, checkForCyclicChild, getBounds, isPaused, isPlaying, markBoundsDirty, paramsUpdated, pauseSound, recomputeBounds, requestBoundsUpdate, setAudioSource, setLive, setUpdateHandler, startSound, stopSound
 
Methods inherited from class org.j3d.aviatrix3d.Node
boundsChanged, checkForCyclicParent, getParent, removeParent, setBounds, setParent, updateBounds
 
Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject
dataChanged, getUserData, isLive, setUserData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BackgroundSound

public BackgroundSound()
Creates a sound.

Method Detail

render

public void render(net.java.games.joal.AL al,
                   javax.vecmath.Matrix4f transform)
This method is called to render this node. All openGL commands needed to render the node should be executed. Any transformations needed should be added to the transformation stack premultiplied. This method must be re-entrant as it can be called from multiple places at once.

Overrides:
render in class Sound
Parameters:
al - The al context to render with
transform - The transformation stack to this node

postRender

public void postRender(net.java.games.joal.AL al)
This method is called after a node has been rendered. This method must be re-entrant.

Overrides:
postRender in class Sound
Parameters:
al - The al context to draw with

isEnabled

public boolean isEnabled()
State check to see whether the sound is enabled.

Overrides:
isEnabled in class Sound
Returns:
true if the sound has something to render

j3d.org Aviatrix3D

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