- Timestamp:
- Jul 16, 2012, 8:19:29 PM (12 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:
- 18c6b20
- Parents:
- c6c9fe9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/io/test-source_sndfile.c
rc6c9fe9 rab7d100 3 3 #include "config.h" 4 4 5 char_t *path = "/home/piem/archives/ drum_Chocolate_Milk_-_Ation_Speaks_Louder_Than_Words.wav";5 char_t *path = "/home/piem/archives/samples/loops/drum_Chocolate_Milk_-_Ation_Speaks_Louder_Than_Words.wav"; 6 6 7 7 int main(){ 8 int err = 0; 8 9 #ifdef HAVE_SNDFILE 9 uint_t samplerate = 32000;10 uint_t samplerate = 192000; 10 11 uint_t hop_size = 512; 11 12 uint_t read = hop_size; … … 13 14 aubio_source_sndfile_t * s = new_aubio_source_sndfile(path, samplerate, hop_size); 14 15 15 if (!s) return -1;16 if (!s) { err = 1; goto beach; } 16 17 17 18 while ( read == hop_size ) { … … 21 22 } 22 23 24 beach: 23 25 del_aubio_source_sndfile(s); 26 del_fvec(vec); 24 27 #else 25 28 fprintf(stderr, "ERR: aubio was not compiled with aubio_source_sndfile\n"); 29 err = 2; 26 30 #endif /* HAVE_SNDFILE */ 27 return 0;31 return err; 28 32 } 29 33
Note: See TracChangeset
for help on using the changeset viewer.