|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.frinika.audio.Voice
com.frinika.benchmark.SyncVoice
com.frinika.benchmark.audio.ClickOscillator
public class ClickOscillator
Output a impulse every period.
| Field Summary |
|---|
| Fields inherited from class com.frinika.benchmark.SyncVoice |
|---|
framePtr, glitched, realStartTime, sequencer |
| Fields inherited from class com.frinika.audio.Voice |
|---|
interrupts, nextVoice, startFramePos |
| Constructor Summary | |
|---|---|
ClickOscillator(FrinikaSequencer seq,
int period)
|
|
| Method Summary | |
|---|---|
protected void |
correctGlitch()
We only use framePtr which is already corrected by doSync |
void |
fillBuffer(int startBufferPos,
int endBufferPos,
float[] buffer)
This is where the raw audio data should be produced. |
| Methods inherited from class com.frinika.benchmark.SyncVoice |
|---|
doSync |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClickOscillator(FrinikaSequencer seq,
int period)
| Method Detail |
|---|
public void fillBuffer(int startBufferPos,
int endBufferPos,
float[] buffer)
Voice
fillBuffer in class Voiceprotected void correctGlitch()
correctGlitch in class SyncVoice
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||