37 size_t ticktockBuffer,
void cleanupResources(AppResources *res, CapConfig *cfg, CaptureCtx *ctx)
Frees all allocated resources and performs any necessary cleanup.
Definition: resources.c:45
AppResources allocateResources(size_t arrayLength, size_t ticktockBuffer, CapConfig *cfg)
Allocates and initializes the resources needed for the application.
Definition: resources.c:10
Struct to hold all the resources needed for the application.
Definition: resources.h:12
struct myarr * tmpder
Definition: resources.h:18
size_t mod
Definition: resources.h:23
struct myarr ** teethArray
Definition: resources.h:20
struct myarr * subpos
Definition: resources.h:14
struct myarr * maxpos
Definition: resources.h:15
size_t arrayLength
Definition: resources.h:13
struct myarr * maxvals
Definition: resources.h:16
size_t maxTime
Definition: resources.h:24
int16_t * audioBuffer16
Definition: resources.h:22
fftw_complex * filterFFT
Definition: resources.h:21
struct myarr * reference
Definition: resources.h:19
struct myarr * derivative
Definition: resources.h:17
brief struct to hold the configuration parameters for the capture process
Definition: config.h:8
Context for audio capture, containing ALSA parameters and configuration.
Definition: mysound.h:23
A struct to hold an array of integers or an array of doubles, along with the length of the arrays.
Definition: myarr.h:14