make static inline -> SPA_API_IMPL

So that we can export the symbols as well.
This commit is contained in:
Wim Taymans 2024-11-20 11:48:08 +01:00
parent 84bd4b7ea9
commit 90b0e45037
91 changed files with 563 additions and 552 deletions

View file

@ -12,6 +12,8 @@ extern "C" {
#include <stddef.h>
#include <math.h>
#include <spa/utils/defs.h>
#define SPA_DLL_BW_MAX 0.128
#define SPA_DLL_BW_MIN 0.016
@ -21,13 +23,13 @@ struct spa_dll {
double w0, w1, w2;
};
static inline void spa_dll_init(struct spa_dll *dll)
SPA_API_IMPL void spa_dll_init(struct spa_dll *dll)
{
dll->bw = 0.0;
dll->z1 = dll->z2 = dll->z3 = 0.0;
}
static inline void spa_dll_set_bw(struct spa_dll *dll, double bw, unsigned period, unsigned rate)
SPA_API_IMPL void spa_dll_set_bw(struct spa_dll *dll, double bw, unsigned period, unsigned rate)
{
double w = 2 * M_PI * bw * period / rate;
dll->w0 = 1.0 - exp (-20.0 * w);
@ -36,7 +38,7 @@ static inline void spa_dll_set_bw(struct spa_dll *dll, double bw, unsigned perio
dll->bw = bw;
}
static inline double spa_dll_update(struct spa_dll *dll, double err)
SPA_API_IMPL double spa_dll_update(struct spa_dll *dll, double err)
{
dll->z1 += dll->w0 * (dll->w1 * err - dll->z1);
dll->z2 += dll->w0 * (dll->z1 - dll->z2);