\hypertarget{resources_8h}{}\doxysection{inc/resources.h File Reference}
\label{resources_8h}\index{inc/resources.h@{inc/resources.h}}
{\ttfamily \#include \char`\"{}config.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}myarr.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}mysound.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}fftw3.\+h\char`\"{}}\newline
{\ttfamily \#include $<$stdint.\+h$>$}\newline
Include dependency graph for resources.\+h\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{resources_8h__incl}
\end{center}
\end{figure}
This graph shows which files directly or indirectly include this file\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{resources_8h__dep__incl}
\end{center}
\end{figure}
\doxysubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{structAppResources}{App\+Resources}}
\begin{DoxyCompactList}\small\item\em Struct to hold all the resources needed for the application. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{structAppResources}{App\+Resources}} \mbox{\hyperlink{resources_8h_ac9dde6e83fbbbe2e79a35712bc53fd05}{allocate\+Resources}} (size\+\_\+t array\+Length, size\+\_\+t ticktock\+Buffer, \mbox{\hyperlink{structCapConfig}{Cap\+Config}} $\ast$cfg)
\begin{DoxyCompactList}\small\item\em Allocates and initializes the resources needed for the application. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{resources_8h_a6c2b2090f22158436b4d392412dc922f}{cleanup\+Resources}} (\mbox{\hyperlink{structAppResources}{App\+Resources}} $\ast$res, \mbox{\hyperlink{structCapConfig}{Cap\+Config}} $\ast$cfg, \mbox{\hyperlink{structCaptureCtx}{Capture\+Ctx}} $\ast$ctx)
\begin{DoxyCompactList}\small\item\em Frees all allocated resources and performs any necessary cleanup. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{resources_8h_ac9dde6e83fbbbe2e79a35712bc53fd05}\label{resources_8h_ac9dde6e83fbbbe2e79a35712bc53fd05}} 
\index{resources.h@{resources.h}!allocateResources@{allocateResources}}
\index{allocateResources@{allocateResources}!resources.h@{resources.h}}
\doxysubsubsection{\texorpdfstring{allocateResources()}{allocateResources()}}
{\footnotesize\ttfamily \mbox{\hyperlink{structAppResources}{App\+Resources}} allocate\+Resources (\begin{DoxyParamCaption}\item[{size\+\_\+t}]{array\+Length,  }\item[{size\+\_\+t}]{ticktock\+Buffer,  }\item[{\mbox{\hyperlink{structCapConfig}{Cap\+Config}} $\ast$}]{cfg }\end{DoxyParamCaption})}



Allocates and initializes the resources needed for the application. 


\begin{DoxyParams}{Parameters}
{\em array\+Length} & The length of the arrays to be allocated. \\
\hline
{\em ticktock\+Buffer} & The size of the audio buffer to be allocated. \\
\hline
{\em cfg} & Pointer to the configuration structure containing necessary parameters. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
An \mbox{\hyperlink{structAppResources}{App\+Resources}} struct containing pointers to all allocated resources. 
\end{DoxyReturn}
\mbox{\Hypertarget{resources_8h_a6c2b2090f22158436b4d392412dc922f}\label{resources_8h_a6c2b2090f22158436b4d392412dc922f}} 
\index{resources.h@{resources.h}!cleanupResources@{cleanupResources}}
\index{cleanupResources@{cleanupResources}!resources.h@{resources.h}}
\doxysubsubsection{\texorpdfstring{cleanupResources()}{cleanupResources()}}
{\footnotesize\ttfamily void cleanup\+Resources (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{structAppResources}{App\+Resources}} $\ast$}]{res,  }\item[{\mbox{\hyperlink{structCapConfig}{Cap\+Config}} $\ast$}]{cfg,  }\item[{\mbox{\hyperlink{structCaptureCtx}{Capture\+Ctx}} $\ast$}]{ctx }\end{DoxyParamCaption})}



Frees all allocated resources and performs any necessary cleanup. 


\begin{DoxyParams}{Parameters}
{\em res} & Pointer to the \mbox{\hyperlink{structAppResources}{App\+Resources}} struct containing the resources to be freed. \\
\hline
{\em cfg} & Pointer to the \mbox{\hyperlink{structCapConfig}{Cap\+Config}} struct containing configuration parameters (if needed for cleanup). \\
\hline
{\em ctx} & Pointer to the \mbox{\hyperlink{structCaptureCtx}{Capture\+Ctx}} struct containing context information (if needed for cleanup). \\
\hline
\end{DoxyParams}
