|
tico 0.1
Mechanical Watch Terminal Timegrapher
|
#include "resources.h"#include "myfft.h"#include "mysync.h"#include "printing.h"#include <fftw3.h>#include <stdlib.h>
Functions | |
| AppResources | allocateResources (size_t arrayLength, size_t ticktockBuffer, CapConfig *cfg) |
| Allocates and initializes the resources needed for the application. More... | |
| void | cleanupResources (AppResources *res, CapConfig *cfg, CaptureCtx *ctx) |
| Frees all allocated resources and performs any necessary cleanup. More... | |
| AppResources allocateResources | ( | size_t | arrayLength, |
| size_t | ticktockBuffer, | ||
| CapConfig * | cfg | ||
| ) |
Allocates and initializes the resources needed for the application.
| arrayLength | The length of the arrays to be allocated. |
| ticktockBuffer | The size of the audio buffer to be allocated. |
| cfg | Pointer to the configuration structure containing necessary parameters. |
| void cleanupResources | ( | AppResources * | res, |
| CapConfig * | cfg, | ||
| CaptureCtx * | ctx | ||
| ) |
Frees all allocated resources and performs any necessary cleanup.
| res | Pointer to the AppResources struct containing the resources to be freed. |
| cfg | Pointer to the CapConfig struct containing configuration parameters (if needed for cleanup). |
| ctx | Pointer to the CaptureCtx struct containing context information (if needed for cleanup). |