blob: 3c5d1230dc64aec5fec55c0164bc74fe03755cad (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef LIBGHA_H
#define LIBGHA_h
#define FLOAT float
#include <stddef.h>
typedef struct gha_ctx gha_ctx;
struct gha_info {
FLOAT freq;
FLOAT phase;
FLOAT magnitude;
};
// size must be even
gha_ctx* gha_create_ctx(size_t size);
void gha_free_ctx(gha_ctx* ctx);
// This function performs one GHA step for given PCM signal,
// the result will be writen in to given gha_ingo structure
void gha_analyze_one(const FLOAT* pcm, struct gha_info* info, gha_ctx* ctx);
#endif
|