JOAL v2.6.0-rc-20250712
JOAL, OpenAL® API Binding for Java™ (public API).
com.jogamp.openal.util.SimpleSineSynth Class Reference

A continuous simple off-thread mutable sine wave synthesizer. More...

Collaboration diagram for com.jogamp.openal.util.SimpleSineSynth:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SimpleSineSynth() [1/2]

com.jogamp.openal.util.SimpleSineSynth.SimpleSineSynth ( )

Definition at line 75 of file SimpleSineSynth.java.

◆ SimpleSineSynth() [2/2]

com.jogamp.openal.util.SimpleSineSynth.SimpleSineSynth ( final Device  device)

Definition at line 78 of file SimpleSineSynth.java.

Member Function Documentation

◆ getAmplitude()

float com.jogamp.openal.util.SimpleSineSynth.getAmplitude ( )

Definition at line 99 of file SimpleSineSynth.java.

◆ getContext()

final Context com.jogamp.openal.util.SimpleSineSynth.getContext ( )

Return this instance's OpenAL Context.

Definition at line 87 of file SimpleSineSynth.java.

Here is the call graph for this function:

◆ getDevice()

final Device com.jogamp.openal.util.SimpleSineSynth.getDevice ( )

Return this instance's OpenAL Device.

Definition at line 85 of file SimpleSineSynth.java.

Here is the call graph for this function:

◆ getFreq()

float com.jogamp.openal.util.SimpleSineSynth.getFreq ( )

Definition at line 94 of file SimpleSineSynth.java.

◆ getLatency()

int com.jogamp.openal.util.SimpleSineSynth.getLatency ( )

Returns latency or frame-duration in milliseconds.

Definition at line 102 of file SimpleSineSynth.java.

Here is the caller graph for this function:

◆ getNextPTS()

int com.jogamp.openal.util.SimpleSineSynth.getNextPTS ( )

Definition at line 150 of file SimpleSineSynth.java.

Here is the caller graph for this function:

◆ getPTS()

PTS com.jogamp.openal.util.SimpleSineSynth.getPTS ( )

Definition at line 152 of file SimpleSineSynth.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSink()

ALAudioSink com.jogamp.openal.util.SimpleSineSynth.getSink ( )

Definition at line 83 of file SimpleSineSynth.java.

◆ getSource()

final Source com.jogamp.openal.util.SimpleSineSynth.getSource ( )

Return this instance's OpenAL Source.

Definition at line 89 of file SimpleSineSynth.java.

Here is the call graph for this function:

◆ isPlaying()

boolean com.jogamp.openal.util.SimpleSineSynth.isPlaying ( )

Definition at line 132 of file SimpleSineSynth.java.

Here is the caller graph for this function:

◆ isRunning()

boolean com.jogamp.openal.util.SimpleSineSynth.isRunning ( )

Definition at line 141 of file SimpleSineSynth.java.

Here is the caller graph for this function:

◆ pause()

void com.jogamp.openal.util.SimpleSineSynth.pause ( )

Definition at line 113 of file SimpleSineSynth.java.

◆ play()

void com.jogamp.openal.util.SimpleSineSynth.play ( )

Definition at line 104 of file SimpleSineSynth.java.

Here is the caller graph for this function:

◆ setAmplitude()

void com.jogamp.openal.util.SimpleSineSynth.setAmplitude ( final float  a)

Definition at line 96 of file SimpleSineSynth.java.

Here is the caller graph for this function:

◆ setFreq()

void com.jogamp.openal.util.SimpleSineSynth.setFreq ( final float  f)

Definition at line 91 of file SimpleSineSynth.java.

Here is the caller graph for this function:

◆ stop()

void com.jogamp.openal.util.SimpleSineSynth.stop ( )

Definition at line 121 of file SimpleSineSynth.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toString()

final String com.jogamp.openal.util.SimpleSineSynth.toString ( )

Definition at line 155 of file SimpleSineSynth.java.

Here is the call graph for this function:

Member Data Documentation

◆ MIDDLE_C

final float com.jogamp.openal.util.SimpleSineSynth.MIDDLE_C = 261.625f
static

Definition at line 66 of file SimpleSineSynth.java.


The documentation for this class was generated from the following file: