#include "config.h"
#include "myarr.h"
#include "mysound.h"
#include "fftw3.h"
#include <stdint.h>
Go to the source code of this file.
◆ allocateResources()
Allocates and initializes the resources needed for the application.
- Parameters
-
| 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. |
- Returns
- An AppResources struct containing pointers to all allocated resources.
◆ cleanupResources()
Frees all allocated resources and performs any necessary cleanup.
- Parameters
-
| 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). |