-
Notifications
You must be signed in to change notification settings - Fork 1
/
delay.h
44 lines (36 loc) · 946 Bytes
/
delay.h
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
/*
* (c) Copyright 2002, 2006 -- Anders Torger
*
* This program is open source. For license terms, see the LICENSE file.
*
*/
#ifndef _DELAY_H_
#define _DELAY_H_
#include "defs.h"
typedef struct _delaybuffer_t_ delaybuffer_t;
/* optional_target_buf has sample_spacing == 1 */
void
delay_update(delaybuffer_t *db,
void *buf,
int sample_size,
int sample_spacing,
int delay,
void *optional_target_buf);
delaybuffer_t *
delay_allocate_buffer(int fragment_size,
int initdelay,
int maxdelay,
int sample_size);
int
delay_subsample_filterblocksize(void);
void
delay_subsample_update(void *buf,
void *rest,
int subdelay);
bool_t
delay_subsample_init(int step_count,
int half_filter_length,
double kaiser_beta,
int fragment_size,
int _realsize);
#endif