Changeset 7982203 for src/io/source_sndfile.c
- Timestamp:
- Mar 22, 2013, 1:41:54 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:
- 4865e4b
- Parents:
- 2d3212a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_sndfile.c
r2d3212a r7982203 177 177 } 178 178 179 uint_t aubio_source_sndfile_seek (aubio_source_sndfile_t * s, uint_t pos) { 180 uint_t resampled_pos = (uint_t)ROUND(pos * s->input_samplerate * 1. / s->samplerate); 181 return sf_seek (s->handle, resampled_pos, SEEK_SET); 182 } 183 179 184 void del_aubio_source_sndfile(aubio_source_sndfile_t * s){ 180 185 if (!s) return;
Note: See TracChangeset
for help on using the changeset viewer.