ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
audio_resampler_t Struct Reference

When code needs to work with audio resampler, it keeps phase, has_previous here instead of scattering it across globals. Initialization establishes the handles and sizes; teardown must release any allocation, lock, thread, or callback context recorded in those fields. More...

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

Data Fields

double phase
float previous [AUDIO_CHANNELS]
bool has_previous

Detailed Description

When code needs to work with audio resampler, it keeps phase, has_previous here instead of scattering it across globals. Initialization establishes the handles and sizes; teardown must release any allocation, lock, thread, or callback context recorded in those fields.

Definition at line 35 of file audio/format.h.

Field Documentation

◆ has_previous

bool audio_resampler_t::has_previous

Definition at line 38 of file audio/format.h.

Referenced by audio_resample_stereo().

◆ phase

double audio_resampler_t::phase

Definition at line 36 of file audio/format.h.

Referenced by audio_resample_stereo().

◆ previous

float audio_resampler_t::previous[AUDIO_CHANNELS]

Definition at line 37 of file audio/format.h.

Referenced by audio_resample_stereo().


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