PS-80 GrandComp Analyzer 1.2
Loading...
Searching...
No Matches
AudioConfig Namespace Reference

Contains centralized audio parameters and engine state definitions. More...

Enumerations

enum class  PlayMode { Waveform , WavFile }
 Defines the operational states of the audio playback engine. More...

Variables

constexpr int WAVESHAPE_LEN {2048}
 The fixed buffer length for a single-cycle waveform (e.g., for wavetable synthesis).
constexpr int WAVESHAPE_MINLEN {512}
 The minimum buffer length for a single-cycle waveform (e.g., for wavetable synthesis).
constexpr int SAMPLE_RATE {44100}
 Standard system sample rate in Hz.
constexpr float DEFAULT_FREQ {55.0f}
 The reference frequency (A1) used for precise cycle extraction.
constexpr int COARSE_MOD {100}
 The coars modification value when modifying waveshape.
constexpr int MEDIUM_MOD {10}
 The medium modification value when modifying waveshape.
constexpr int FINE_MOD {1}
 The fine modification value when modifying waveshape.

Detailed Description

Contains centralized audio parameters and engine state definitions.

  • By using C++20 inline constexpr, we ensure optimal memory management and compile-time constants, adhering to high-performance software standards.

Enumeration Type Documentation

◆ PlayMode

enum class AudioConfig::PlayMode
strong

Defines the operational states of the audio playback engine.

  • This scoped enum ensures type safety when switching between real-time oscillation and direct file auditing.
Enumerator
Waveform 

Oscillator mode: Loops the extracted 2048-sample clip.

WavFile 

1:1 Playback mode: Streams the original source WAV file.

Variable Documentation

◆ COARSE_MOD

int AudioConfig::COARSE_MOD {100}
inlineconstexpr

The coars modification value when modifying waveshape.

◆ DEFAULT_FREQ

float AudioConfig::DEFAULT_FREQ {55.0f}
inlineconstexpr

The reference frequency (A1) used for precise cycle extraction.

◆ FINE_MOD

int AudioConfig::FINE_MOD {1}
inlineconstexpr

The fine modification value when modifying waveshape.

◆ MEDIUM_MOD

int AudioConfig::MEDIUM_MOD {10}
inlineconstexpr

The medium modification value when modifying waveshape.

◆ SAMPLE_RATE

int AudioConfig::SAMPLE_RATE {44100}
inlineconstexpr

Standard system sample rate in Hz.

◆ WAVESHAPE_LEN

int AudioConfig::WAVESHAPE_LEN {2048}
inlineconstexpr

The fixed buffer length for a single-cycle waveform (e.g., for wavetable synthesis).

◆ WAVESHAPE_MINLEN

int AudioConfig::WAVESHAPE_MINLEN {512}
inlineconstexpr

The minimum buffer length for a single-cycle waveform (e.g., for wavetable synthesis).