source: tests/src/pitch/test-pitchspecacf.c @ 18278232

feature/crepe_org
Last change on this file since 18278232 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: 637 bytes
Line 
1#define AUBIO_UNSTABLE 1
2
3// this file uses the unstable aubio api, please use aubio_pitch instead
4// see src/pitch/pitch.h and tests/src/pitch/test-pitch.c
5
6#include <aubio.h>
7
8int main (void)
9{
10  uint_t n = 10; // compute n times
11  uint_t win_s = 1024; // window size
12  // create some vectors
13  fvec_t * in = new_fvec (win_s); // input buffer
14  fvec_t * out = new_fvec (1); // input buffer
15  // create pitch object
16  aubio_pitchspecacf_t * o = new_aubio_pitchspecacf(win_s);
17
18  while ( n-- ) {
19    aubio_pitchspecacf_do(o,in, out);
20  };
21
22  del_aubio_pitchspecacf(o);
23  del_fvec(in);
24  del_fvec(out);
25  aubio_cleanup();
26
27  return 0;
28}
29
Note: See TracBrowser for help on using the repository browser.