miniDSP
A small C library for audio DSP
Loading...
Searching...
No Matches
minidsp_internal.h
Go to the documentation of this file.
1
9
10#ifndef MINIDSP_INTERNAL_H
11#define MINIDSP_INTERNAL_H
12
13#include "minidsp.h"
14
15/* -----------------------------------------------------------------------
16 * Error reporting (see minidsp_error.c)
17 * -----------------------------------------------------------------------*/
18
20void md_report_error(MD_ErrorCode code, const char *func_name,
21 const char *message);
22
27#define MD_CHECK(cond, code, msg, retval) do { \
28 if (!(cond)) { \
29 md_report_error((code), __func__, (msg)); \
30 return (retval); \
31 } \
32} while (0)
33
38#define MD_CHECK_VOID(cond, code, msg) do { \
39 if (!(cond)) { \
40 md_report_error((code), __func__, (msg)); \
41 return; \
42 } \
43} while (0)
44
45/* -----------------------------------------------------------------------
46 * Cross-file teardown hooks (called from MD_shutdown)
47 * -----------------------------------------------------------------------*/
48
51void md_gcc_teardown(void);
52
55void md_steg_teardown(void);
56
57#endif /* MINIDSP_INTERNAL_H */
A mini library of DSP (Digital Signal Processing) routines.
MD_ErrorCode
Error codes reported by miniDSP when a precondition is violated.
Definition minidsp.h:61
void md_steg_teardown(void)
Tear down the BFSK sine carrier cache.
void md_report_error(MD_ErrorCode code, const char *func_name, const char *message)
Report a precondition violation to the active error handler.
void md_gcc_teardown(void)
Tear down the GCC-PHAT FFT cache and reset its cached length.