com.frinika.benchmark
Class SyncVoice

java.lang.Object
  extended by com.frinika.voiceserver.Voice
      extended by com.frinika.benchmark.SyncVoice
Direct Known Subclasses:
ClickListener, ClickOscillator

public abstract class SyncVoice
extends Voice


Field Summary
protected  long framePtr
           
protected  boolean glitched
           
 long realStartTime
           
protected  FrinikaSequencer sequencer
           
 
Fields inherited from class com.frinika.voiceserver.Voice
interrupts, nextVoice, startFramePos
 
Constructor Summary
protected SyncVoice(FrinikaSequencer seq)
           
 
Method Summary
protected abstract  void correctGlitch()
          Called when framePtr goes out of sync
protected  boolean doSync(int tol)
           
 
Methods inherited from class com.frinika.voiceserver.Voice
fillBuffer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

realStartTime

public long realStartTime

framePtr

protected long framePtr

glitched

protected boolean glitched

sequencer

protected FrinikaSequencer sequencer
Constructor Detail

SyncVoice

protected SyncVoice(FrinikaSequencer seq)
Method Detail

doSync

protected boolean doSync(int tol)

correctGlitch

protected abstract void correctGlitch()
Called when framePtr goes out of sync