Changeset 98874a6
- Timestamp:
- Feb 10, 2013, 8:22:38 AM (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:
- 9a226ef
- Parents:
- 7b4ea49
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/utils.c
r7b4ea49 r98874a6 60 60 uint_t overlap_size = 256; //512; 61 61 uint_t samplerate = 44100; 62 63 62 64 63 aubio_source_t *this_source = NULL; … … 204 203 if (!usejack) { 205 204 debug ("Opening files ...\n"); 206 // TODO get actual samplerate 207 samplerate = 44100; 208 this_source = new_aubio_source ((char_t*)source_uri, samplerate, overlap_size); 205 this_source = new_aubio_source ((char_t*)source_uri, 0, overlap_size); 209 206 if (this_source == NULL) { 210 207 outmsg ("Could not open input file %s.\n", source_uri); 211 208 exit (1); 212 209 } 213 // TODO get actual samplerate 214 //samplerate = aubio_sndfile_samplerate (this_source); 210 samplerate = aubio_source_get_samplerate(this_source); 215 211 if (sink_uri != NULL) { 216 212 this_sink = new_aubio_sink ((char_t*)sink_uri, samplerate);
Note: See TracChangeset
for help on using the changeset viewer.