org.hfbk.vis.visnode.VisSound Class Reference

Inheritance diagram for org.hfbk.vis.visnode.VisSound:

Inheritance graph
[legend]
Collaboration diagram for org.hfbk.vis.visnode.VisSound:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 VisSound (Node n, Vector3f pos)
void trigger (boolean looping)

Package Functions

void renderSelf ()

Package Attributes

final int SAMPLE_STEP = 150
short[] samples
int ringpos = 0
final int RING_LENGTH = 100
final short[] ring = new short[RING_LENGTH]

Detailed Description

a visible sound source.

Author:
student

Definition at line 21 of file VisSound.java.


Constructor & Destructor Documentation

org.hfbk.vis.visnode.VisSound.VisSound ( Node  n,
Vector3f  pos 
)

Definition at line 31 of file VisSound.java.

References org.dronus.graph.Node.text.


Member Function Documentation

void org.hfbk.vis.visnode.VisSound.renderSelf (  )  [package, virtual]

implement this to actually render this node itself. also used to update a node's state.

things not seen also do not update. this is sometimes akward, sometimes useful, eg. a movie not seen does not advance

Reimplemented from org.hfbk.vis.visnode.Sound.

Definition at line 37 of file VisSound.java.

References org.hfbk.vis.visnode.VisSound.ring, org.hfbk.vis.visnode.VisSound.RING_LENGTH, org.hfbk.vis.visnode.VisSound.ringpos, org.hfbk.vis.visnode.VisSound.SAMPLE_STEP, org.hfbk.vis.visnode.VisSound.samples, and org.hfbk.vis.visnode.Sound.source.

void org.hfbk.vis.visnode.VisSound.trigger ( boolean  looping  ) 

tigger sound

Parameters:
looping if to play as loop

Reimplemented from org.hfbk.vis.visnode.Sound.

Definition at line 74 of file VisSound.java.

References org.hfbk.vis.visnode.Sound.buffer, org.hfbk.vis.visnode.VisSound.SAMPLE_STEP, org.hfbk.vis.visnode.VisSound.samples, org.hfbk.vis.visnode.Sound.source, and org.hfbk.vis.visnode.Sound.wavfile.


Member Data Documentation

final int org.hfbk.vis.visnode.VisSound.SAMPLE_STEP = 150 [package]

Definition at line 23 of file VisSound.java.

Referenced by org.hfbk.vis.visnode.VisSound.renderSelf(), and org.hfbk.vis.visnode.VisSound.trigger().

short [] org.hfbk.vis.visnode.VisSound.samples [package]

Definition at line 24 of file VisSound.java.

Referenced by org.hfbk.vis.visnode.VisSound.renderSelf(), and org.hfbk.vis.visnode.VisSound.trigger().

int org.hfbk.vis.visnode.VisSound.ringpos = 0 [package]

Definition at line 26 of file VisSound.java.

Referenced by org.hfbk.vis.visnode.VisSound.renderSelf().

final int org.hfbk.vis.visnode.VisSound.RING_LENGTH = 100 [package]

Definition at line 27 of file VisSound.java.

Referenced by org.hfbk.vis.visnode.VisSound.renderSelf().

final short [] org.hfbk.vis.visnode.VisSound.ring = new short[RING_LENGTH] [package]

Definition at line 29 of file VisSound.java.

Referenced by org.hfbk.vis.visnode.VisSound.renderSelf().


The documentation for this class was generated from the following file:
Generated on Tue Apr 7 18:00:01 2009 for visclient by  doxygen 1.5.1