Changeset a0a4d01


Ignore:
Timestamp:
Dec 7, 2018, 1:28:54 AM (12 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/timestretch
Children:
85755eb
Parents:
7970616
git-author:
Paul Brossier <piem@piem.org> (09/29/16 13:38:04)
git-committer:
Paul Brossier <piem@piem.org> (12/07/18 01:28:54)
Message:

src/effects/timestretch.h: add _seek method

Location:
src/effects
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/effects/timestretch.h

    r7970616 ra0a4d01  
    157157smpl_t aubio_timestretch_get_transpose (aubio_timestretch_t * o);
    158158
     159/** seek to a posisition the transposition of the time stretching object, in semitones
     160
     161  \param o time stretching object as returned by ::new_aubio_timestretch()
     162  \param pos position to seek to, in frames
     163
     164  \return transposition of the time stretching object, in semitones
     165
     166*/
     167uint_t aubio_timestretch_seek(aubio_timestretch_t * o, uint_t pos);
     168
    159169#ifdef __cplusplus
    160170}
  • src/effects/timestretch_dummy.c

    r7970616 ra0a4d01  
    8787}
    8888
     89uint_t aubio_timestretch_seek(aubio_timestretch_t *o UNUSED, uint_t pos UNUSED) {
     90  return AUBIO_FAIL;
     91}
    8992// end of dummy implementation
    9093
  • src/effects/timestretch_rubberband.c

    r7970616 ra0a4d01  
    209209}
    210210
     211uint_t
     212aubio_timestretch_seek (aubio_timestretch_t *p, uint_t pos)
     213{
     214  p->eof = 0;
     215  rubberband_reset(p->rb);
     216  return aubio_source_seek(p->source, pos);
     217}
     218
    211219#endif
Note: See TracChangeset for help on using the changeset viewer.