com.frinika.benchmark
Class OutputBufferTest
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
OutputBufferTest
public OutputBufferTest(int bufferSize)
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