Files: f8137a6ba7c36d2d53855c2c3c4fdd0961c4d9b6 / src / syntrax / resampler.h
2656 bytesRaw
1 | |
2 | |
3 | |
4 | /* Copyright (C) 2004-2008 Shay Green. |
5 | Copyright (C) 2015 Christopher Snowhill. This module is free software; you |
6 | can redistribute it and/or modify it under the terms of the GNU Lesser |
7 | General Public License as published by the Free Software Foundation; either |
8 | version 2.1 of the License, or (at your option) any later version. This |
9 | module is distributed in the hope that it will be useful, but WITHOUT ANY |
10 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
11 | FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
12 | details. You should have received a copy of the GNU Lesser General Public |
13 | License along with this module; if not, write to the Free Software Foundation, |
14 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ |
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 | typedef int16_t sample_t; |
42 | |
43 | typedef int32_t sample_t; |
44 | |
45 | |
46 | |
47 | |
48 | |
49 | extern "C" { |
50 | |
51 | |
52 | void * resampler_create(); |
53 | void * resampler_dup(const void *); |
54 | void resampler_dup_inplace(void *, const void *); |
55 | void resampler_destroy(void *); |
56 | |
57 | void resampler_clear(void *); |
58 | |
59 | void resampler_set_rate( void *, double new_factor ); |
60 | |
61 | int resampler_get_free(void *); |
62 | int resampler_get_min_fill(void *); |
63 | |
64 | void resampler_write_sample(void *, sample_t s); |
65 | |
66 | int resampler_get_avail(void *); |
67 | |
68 | void resampler_read_sample( void *, sample_t *s ); |
69 | void resampler_peek_sample( void *, sample_t *s ); |
70 | |
71 | |
72 | } |
73 | |
74 | |
75 | |
76 |
Built with git-ssb-web