Changeset fc117d0 for src/io/source_sndfile.c
- Timestamp:
- Feb 11, 2013, 11:06:28 AM (11 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:
- 050a8f3
- Parents:
- 5314432 (diff), 88fc249 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_sndfile.c
r5314432 rfc117d0 70 70 71 71 s->hop_size = hop_size; 72 s->samplerate = samplerate;73 72 s->channels = 1; 74 73 s->path = path; … … 90 89 s->input_format = sfinfo.format; 91 90 92 if (s->samplerate == 1) s->samplerate = s->input_samplerate; 93 91 if (samplerate == 0) { 92 samplerate = s->input_samplerate; 93 //AUBIO_DBG("sampling rate set to 0, automagically adjusting to %d\n", samplerate); 94 } 95 s->samplerate = samplerate; 94 96 /* compute input block size required before resampling */ 95 97 s->ratio = s->samplerate/(float)s->input_samplerate; … … 192 194 } 193 195 196 uint_t aubio_source_sndfile_get_samplerate(aubio_source_sndfile_t * s) { 197 return s->samplerate; 198 } 199 194 200 #endif /* HAVE_SNDFILE */
Note: See TracChangeset
for help on using the changeset viewer.