ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
spectral_config_t Struct Reference

For spectral config, this is the live record that ties sample_rate, fft_size, noise_gate, compressor together. The owning code creates it, updates it while work is active, and releases its handles and pointed-to storage before freeing the record. More...

#include <include/ascii-chat/audio/spectral.h>

Data Fields

int sample_rate
int fft_size
bool noise_gate
bool compressor
bool adaptive_eq
bool pitch_correct
bool auto_gain
float reduction_db
float crossovers [4 - 1]
float thresholds_db [4]
float ratios [4]

Detailed Description

For spectral config, this is the live record that ties sample_rate, fft_size, noise_gate, compressor together. The owning code creates it, updates it while work is active, and releases its handles and pointed-to storage before freeing the record.

Definition at line 19 of file spectral.h.

Field Documentation

◆ adaptive_eq

bool spectral_config_t::adaptive_eq

Definition at line 24 of file spectral.h.

Referenced by client_audio_pipeline_config_for_source(), and mixer_create_channels().

◆ auto_gain

bool spectral_config_t::auto_gain

◆ compressor

bool spectral_config_t::compressor

◆ crossovers

float spectral_config_t::crossovers[4 - 1]

Definition at line 28 of file spectral.h.

Referenced by spectral_create().

◆ fft_size

int spectral_config_t::fft_size

512, 1024, or 2048; latency is exactly fft_size samples.

Definition at line 21 of file spectral.h.

Referenced by client_audio_pipeline_config_for_source(), mixer_create_channels(), spectral_create(), spectral_process(), and spectral_spectrum().

◆ noise_gate

bool spectral_config_t::noise_gate

◆ pitch_correct

bool spectral_config_t::pitch_correct

Optional monophonic correction to nearest equal-tempered semitone.

Definition at line 25 of file spectral.h.

Referenced by client_audio_pipeline_config_for_source().

◆ ratios

float spectral_config_t::ratios[4]

Definition at line 30 of file spectral.h.

Referenced by spectral_create().

◆ reduction_db

float spectral_config_t::reduction_db

Definition at line 27 of file spectral.h.

Referenced by spectral_create().

◆ sample_rate

int spectral_config_t::sample_rate

◆ thresholds_db

float spectral_config_t::thresholds_db[4]

Definition at line 29 of file spectral.h.

Referenced by spectral_create().


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