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

A continuous simple on-thread immutable sine wave synthesizer. More...

Collaboration diagram for com.jogamp.openal.test.manual.Synth01AL:

Public Member Functions

void init ()
 
void exit ()
 
void loop (final float freq)
 

Static Public Member Functions

static void waitForKey (final String message)
 
static int findBestWaveCount (final float freq, final int sampleRate, final int minWaves, final int maxWaves)
 
static float atof (final String str, final float def)
 
static void main (final String[] args)
 

Static Public Attributes

static final float PI = 3.14159265358979323846f
 The value PI, i.e. More...
 
static final float TWO_PI = 2f * PI
 The value 2PI, i.e. More...
 

Detailed Description

A continuous simple on-thread immutable sine wave synthesizer.

Implementation simply finds the best loop'able sample-count for a fixed frequency and plays it indefinitely.

Definition at line 50 of file Synth01AL.java.

Member Function Documentation

◆ atof()

static float com.jogamp.openal.test.manual.Synth01AL.atof ( final String  str,
final float  def 
)
static

Definition at line 221 of file Synth01AL.java.

Here is the caller graph for this function:

◆ exit()

void com.jogamp.openal.test.manual.Synth01AL.exit ( )

Definition at line 123 of file Synth01AL.java.

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

◆ findBestWaveCount()

static int com.jogamp.openal.test.manual.Synth01AL.findBestWaveCount ( final float  freq,
final int  sampleRate,
final int  minWaves,
final int  maxWaves 
)
static

Definition at line 147 of file Synth01AL.java.

Here is the caller graph for this function:

◆ init()

void com.jogamp.openal.test.manual.Synth01AL.init ( )

Definition at line 88 of file Synth01AL.java.

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

◆ loop()

void com.jogamp.openal.test.manual.Synth01AL.loop ( final float  freq)

Definition at line 171 of file Synth01AL.java.

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

◆ main()

static void com.jogamp.openal.test.manual.Synth01AL.main ( final String[]  args)
static

Definition at line 230 of file Synth01AL.java.

Here is the call graph for this function:

◆ waitForKey()

static void com.jogamp.openal.test.manual.Synth01AL.waitForKey ( final String  message)
static

Definition at line 61 of file Synth01AL.java.

Here is the caller graph for this function:

Member Data Documentation

◆ PI

final float com.jogamp.openal.test.manual.Synth01AL.PI = 3.14159265358979323846f
static

The value PI, i.e.

180 degrees in radians.

Definition at line 52 of file Synth01AL.java.

◆ TWO_PI

final float com.jogamp.openal.test.manual.Synth01AL.TWO_PI = 2f * PI
static

The value 2PI, i.e.

360 degrees in radians.

Definition at line 55 of file Synth01AL.java.


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