com.frinika.benchmark
Class OutputBufferTest

java.lang.Object
  extended by com.frinika.benchmark.OutputBufferTest
All Implemented Interfaces:
java.lang.Runnable

public class OutputBufferTest
extends java.lang.Object
implements java.lang.Runnable


Field Summary
protected  boolean standardLatency
          Use Java standard way of latency control (blocking on sdl.write)
protected  boolean ultraLowLatency
          Ultra low latency mode can be used for small buffer sizes to obtain better latency - BUT it eats all your CPU.
 
Constructor Summary
OutputBufferTest(int bufferSize)
           
 
Method Summary
 void run()
           
 void setBufferSize(int len)
           
 void startAudioOutput()
           
 void stopAudioOutput()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ultraLowLatency

protected boolean ultraLowLatency
Ultra low latency mode can be used for small buffer sizes to obtain better latency - BUT it eats all your CPU.


standardLatency

protected boolean standardLatency
Use Java standard way of latency control (blocking on sdl.write)

Constructor Detail

OutputBufferTest

public OutputBufferTest(int bufferSize)
Method Detail

startAudioOutput

public void startAudioOutput()

stopAudioOutput

public void stopAudioOutput()
                     throws java.lang.Exception
Throws:
java.lang.Exception

run

public void run()
Specified by:
run in interface java.lang.Runnable

setBufferSize

public void setBufferSize(int len)
                   throws java.lang.Exception
Throws:
java.lang.Exception