Public Member Functions | |
VisAudio (Node n, Vector3f pos) | |
Package Functions | |
void | renderSelf () |
Package Attributes | |
VideoFetcher | fetcher |
String | url |
boolean | playing = true |
final int | SAMPLE_STEP = 150 |
short[] | samples |
int | ringpos = 0 |
final int | RING_LENGTH = 100 |
final short[] | ring = new short[RING_LENGTH] |
Definition at line 15 of file VisAudio.java.
org.hfbk.vis.visnode.VisAudio.VisAudio | ( | Node | n, | |
Vector3f | pos | |||
) |
Definition at line 36 of file VisAudio.java.
References org.hfbk.vis.visnode.VisAudio.fetcher, and org.dronus.graph.Node.text.
void org.hfbk.vis.visnode.VisAudio.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 43 of file VisAudio.java.
References org.hfbk.vis.visnode.VisAudio.fetcher, org.hfbk.vid.AVStreamingThread.getAudioSource(), org.hfbk.vis.visnode.VisAudio.ring, org.hfbk.vis.visnode.VisAudio.RING_LENGTH, org.hfbk.vis.visnode.VisAudio.ringpos, org.hfbk.vis.visnode.Sound.source, org.hfbk.vid.AVStreamingThread.start(), and org.hfbk.vid.VideoFetcher.streamer.
Here is the call graph for this function:
Definition at line 18 of file VisAudio.java.
Referenced by org.hfbk.vis.visnode.VisAudio.renderSelf(), and org.hfbk.vis.visnode.VisAudio.VisAudio().
String org.hfbk.vis.visnode.VisAudio.url [package] |
a related url. this is akward for this abstract class but currently most of VisNodes uses an url in some kind, we can process it more conveniently if defined in superclass.
Reimplemented from org.hfbk.vis.visnode.VisNode.
Definition at line 19 of file VisAudio.java.
boolean org.hfbk.vis.visnode.VisAudio.playing = true [package] |
if aiudio is playing
Definition at line 23 of file VisAudio.java.
final int org.hfbk.vis.visnode.VisAudio.SAMPLE_STEP = 150 [package] |
Definition at line 28 of file VisAudio.java.
short [] org.hfbk.vis.visnode.VisAudio.samples [package] |
Definition at line 29 of file VisAudio.java.
int org.hfbk.vis.visnode.VisAudio.ringpos = 0 [package] |
Definition at line 31 of file VisAudio.java.
Referenced by org.hfbk.vis.visnode.VisAudio.renderSelf().
final int org.hfbk.vis.visnode.VisAudio.RING_LENGTH = 100 [package] |
Definition at line 32 of file VisAudio.java.
Referenced by org.hfbk.vis.visnode.VisAudio.renderSelf().
final short [] org.hfbk.vis.visnode.VisAudio.ring = new short[RING_LENGTH] [package] |
Definition at line 34 of file VisAudio.java.
Referenced by org.hfbk.vis.visnode.VisAudio.renderSelf().