ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
spectral.h
Go to the documentation of this file.
1#pragma once
2
3/* Existing buffer budgets in bytes, including NUL for text storage. */
4#define SPECTRAL_BAND_COUNT 4
5
7#include <stdbool.h>
8#include <stddef.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
36
44 const float *input, float *output,
45 size_t count);
48float spectral_pitch_hz(const spectral_processor_t *processor);
49const float *spectral_spectrum(const spectral_processor_t *processor,
50 size_t *bins);
51
52#ifdef __cplusplus
53}
54#endif
Synchronized per-thread pending error stacks and value snapshots. SET_ERRNO pushes,...
asciichat_error_t
Error and exit codes - unified status values (0-255).
Definition error_codes.h:48
static bool size_t gotel_query_t * out
Definition queries.h:10
void spectral_reset(spectral_processor_t *processor)
Definition spectral.c:51
asciichat_error_t spectral_process(spectral_processor_t *processor, const float *input, float *output, size_t count)
Definition spectral.c:309
void spectral_destroy(spectral_processor_t *processor)
Definition spectral.c:116
const float * spectral_spectrum(const spectral_processor_t *processor, size_t *bins)
Definition spectral.c:326
spectral_config_t spectral_default_config(int sample_rate)
Definition spectral.c:41
asciichat_error_t spectral_create(const spectral_config_t *config, spectral_processor_t **out)
Definition spectral.c:73
float spectral_pitch_hz(const spectral_processor_t *processor)
Definition spectral.c:332
struct spectral_processor spectral_processor_t
Definition spectral.h:15
#define SPECTRAL_BAND_COUNT
Definition spectral.h:4
For spectral config, this is the live record that ties sample_rate, fft_size, noise_gate,...
Definition spectral.h:22
float ratios[4]
Definition spectral.h:34
float crossovers[4 - 1]
Definition spectral.h:32
float thresholds_db[4]
Definition spectral.h:33
spectral processor keeps the values that move through the subsystem: config, forward,...
Definition spectral.c:18