Changeset 9daf018
- Timestamp:
- Oct 8, 2009, 12:07:12 PM (15 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 0af05d3
- Parents:
- 06f2d78
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/test-resample.c
r06f2d78 r9daf018 1 #include <stdio.h> 1 2 #include <aubio.h> 2 3 3 4 int main(){ 4 #if HAVE_ LIBSAMPLERATE5 #if HAVE_SAMPLERATE 5 6 /* allocate some memory */ 6 7 uint_t win_s = 1024; /* window size */ … … 12 13 uint_t i = 0; 13 14 14 while (i < 10 0) {15 aubio_resampler_ process(o,in,out);15 while (i < 10) { 16 aubio_resampler_do(o,in,out); 16 17 i++; 17 18 }; … … 21 22 del_fvec(out); 22 23 23 #endif /* HAVE_LIBSAMPLERATE */ 24 #else 25 fprintf(stderr, "aubio_resampler_t not compiled in\n"); 26 #endif /* HAVE_SAMPLERATE */ 24 27 return 0; 25 28 }
Note: See TracChangeset
for help on using the changeset viewer.