feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/timestretchfix/ffmpeg5
Last change
on this file since 0056314 was
158e031,
checked in by Paul Brossier <piem@piem.org>, 11 years ago
|
tests/: add void to prototypes to build with -Wstrict-prototypes
|
-
Property mode set to
100644
|
File size:
437 bytes
|
Line | |
---|
1 | #include <aubio.h> |
---|
2 | |
---|
3 | int main (void) |
---|
4 | { |
---|
5 | uint_t win_s = 1024; // window size |
---|
6 | smpl_t ratio = 0.5; |
---|
7 | fvec_t *in = new_fvec (win_s); // input buffer |
---|
8 | fvec_t *out = new_fvec ((uint_t) (win_s * ratio)); // output buffer |
---|
9 | aubio_resampler_t *o = new_aubio_resampler (0.5, 0); |
---|
10 | uint_t i = 0; |
---|
11 | |
---|
12 | while (i < 10) { |
---|
13 | aubio_resampler_do (o, in, out); |
---|
14 | i++; |
---|
15 | }; |
---|
16 | |
---|
17 | del_aubio_resampler (o); |
---|
18 | del_fvec (in); |
---|
19 | del_fvec (out); |
---|
20 | |
---|
21 | return 0; |
---|
22 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.