- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/io/test-source_sndfile.c
r2e50800 r294aff6 18 18 19 19 #ifdef HAVE_SNDFILE 20 uint_t samplerate = 0;20 uint_t samplerate = 32000; 21 21 uint_t hop_size = 256; 22 22 uint_t n_frames = 0, read = 0; … … 27 27 fvec_t *vec = new_fvec(hop_size); 28 28 aubio_source_sndfile_t * s = new_aubio_source_sndfile(source_path, samplerate, hop_size); 29 if (!s) { err = 1; goto beach; } 29 30 if (samplerate == 0 ) samplerate = aubio_source_sndfile_get_samplerate(s); 30 31 if (!s) { err = 1; goto beach; }32 31 33 32 do { 34 33 aubio_source_sndfile_do(s, vec, &read); 35 fvec_print (vec);34 // fvec_print (vec); 36 35 n_frames += read; 37 36 } while ( read == hop_size ); 38 37 38 del_aubio_source_sndfile (s); 39 39 beach: 40 del_aubio_source_sndfile (s);41 40 del_fvec (vec); 42 41 #else
Note: See TracChangeset
for help on using the changeset viewer.