Ignore:
Timestamp:
Mar 22, 2013, 1:41:54 AM (11 years ago)
Author:
Paul Brossier <piem@piem.org>
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
Message:

add seek to src/io/source*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_sndfile.c

    r2d3212a r7982203  
    177177}
    178178
     179uint_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
    179184void del_aubio_source_sndfile(aubio_source_sndfile_t * s){
    180185  if (!s) return;
Note: See TracChangeset for help on using the changeset viewer.