|
JOAL v2.6.0-rc-20250706
JOAL, OpenAL® API Binding for Java (public API).
|
A continuous simple off-thread mutable sine wave synthesizer. More...
Classes | |
| class | SynthWorker |
Public Member Functions | |
| SimpleSineSynth () | |
| SimpleSineSynth (final Device device) | |
| ALAudioSink | getSink () |
| final Device | getDevice () |
Return this instance's OpenAL Device. More... | |
| final Context | getContext () |
Return this instance's OpenAL Context. More... | |
| final Source | getSource () |
Return this instance's OpenAL Source. More... | |
| void | setFreq (final float f) |
| float | getFreq () |
| void | setAmplitude (final float a) |
| float | getAmplitude () |
| int | getLatency () |
| Returns latency or frame-duration in milliseconds. More... | |
| void | play () |
| void | pause () |
| void | stop () |
| boolean | isPlaying () |
| boolean | isRunning () |
| int | getNextPTS () |
| PTS | getPTS () |
| final String | toString () |
Static Public Attributes | |
| static final float | MIDDLE_C = 261.625f |
A continuous simple off-thread mutable sine wave synthesizer.
Implementation utilizes an off-thread worker thread streaming the generated wave to OpenAL, allowing to change frequency and amplitude without disturbance.
Definition at line 53 of file SimpleSineSynth.java.
| com.jogamp.openal.util.SimpleSineSynth.SimpleSineSynth | ( | ) |
Definition at line 75 of file SimpleSineSynth.java.
| com.jogamp.openal.util.SimpleSineSynth.SimpleSineSynth | ( | final Device | device | ) |
Definition at line 78 of file SimpleSineSynth.java.
| float com.jogamp.openal.util.SimpleSineSynth.getAmplitude | ( | ) |
Definition at line 99 of file SimpleSineSynth.java.
| final Context com.jogamp.openal.util.SimpleSineSynth.getContext | ( | ) |
Return this instance's OpenAL Context.
Definition at line 87 of file SimpleSineSynth.java.
| final Device com.jogamp.openal.util.SimpleSineSynth.getDevice | ( | ) |
Return this instance's OpenAL Device.
Definition at line 85 of file SimpleSineSynth.java.
| float com.jogamp.openal.util.SimpleSineSynth.getFreq | ( | ) |
Definition at line 94 of file SimpleSineSynth.java.
| int com.jogamp.openal.util.SimpleSineSynth.getLatency | ( | ) |
Returns latency or frame-duration in milliseconds.
Definition at line 102 of file SimpleSineSynth.java.
| int com.jogamp.openal.util.SimpleSineSynth.getNextPTS | ( | ) |
| PTS com.jogamp.openal.util.SimpleSineSynth.getPTS | ( | ) |
Definition at line 152 of file SimpleSineSynth.java.
| ALAudioSink com.jogamp.openal.util.SimpleSineSynth.getSink | ( | ) |
Definition at line 83 of file SimpleSineSynth.java.
| final Source com.jogamp.openal.util.SimpleSineSynth.getSource | ( | ) |
Return this instance's OpenAL Source.
Definition at line 89 of file SimpleSineSynth.java.
| boolean com.jogamp.openal.util.SimpleSineSynth.isPlaying | ( | ) |
| boolean com.jogamp.openal.util.SimpleSineSynth.isRunning | ( | ) |
| void com.jogamp.openal.util.SimpleSineSynth.pause | ( | ) |
Definition at line 113 of file SimpleSineSynth.java.
| void com.jogamp.openal.util.SimpleSineSynth.play | ( | ) |
| void com.jogamp.openal.util.SimpleSineSynth.setAmplitude | ( | final float | a | ) |
| void com.jogamp.openal.util.SimpleSineSynth.setFreq | ( | final float | f | ) |
| void com.jogamp.openal.util.SimpleSineSynth.stop | ( | ) |
Definition at line 121 of file SimpleSineSynth.java.
| final String com.jogamp.openal.util.SimpleSineSynth.toString | ( | ) |
|
static |
Definition at line 66 of file SimpleSineSynth.java.