-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathextrapolator.h
More file actions
47 lines (36 loc) · 1.16 KB
/
Copy pathextrapolator.h
File metadata and controls
47 lines (36 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
////////////////////////////////////////////////////////////////////////////
// **** EXTRAPOLATOR **** //
// LPC-Based Extrapolator //
// Copyright (c) 2025 David Bryant //
// All Rights Reserved //
// Distributed under the BSD Software License (see license.txt) //
////////////////////////////////////////////////////////////////////////////
// extrapolator.h
#ifndef EXTRAPOLATOR_H
#define EXTRAPOLATOR_H
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#define _USE_MATH_DEFINES
#include <math.h>
#if defined(PATH_WIDTH) && (PATH_WIDTH==64)
typedef double artsample_t;
#else
typedef float artsample_t;
#endif
#ifndef NCOEFFS
#define NCOEFFS 4
#endif
#ifndef MAXLOOPS
#define MAXLOOPS 100000
#endif
#ifdef __cplusplus
extern "C" {
#endif
double extrapolate_forward (artsample_t *values, int nvalues, int num_to_extrapolate);
double extrapolate_reverse (artsample_t *values, int nvalues, int num_to_extrapolate);
#ifdef __cplusplus
}
#endif
#endif