Changeset c8f411b
- Timestamp:
- Feb 10, 2013, 6:30:31 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:
- 4db8eab
- Parents:
- a8752a8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_sndfile.c
ra8752a8 rc8f411b 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 91 if (samplerate == 0) { 92 samplerate = s->input_samplerate; 93 AUBIO_WRN("sampling rate set to 0, automagically adjusting to %d", samplerate); 94 } 95 s->samplerate = samplerate; 92 96 /* compute input block size required before resampling */ 93 97 s->ratio = s->samplerate/(float)s->input_samplerate;
Note: See TracChangeset
for help on using the changeset viewer.