Changeset 0d4228d for src/effects


Ignore:
Timestamp:
Sep 29, 2016, 1:38:04 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
sampler, timestretch
Children:
fb5bd55
Parents:
39f1d5c
Message:

src/effects/timestretch.h: add _seek method

Location:
src/effects
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/effects/timestretch.h

    r39f1d5c r0d4228d  
    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

    r39f1d5c r0d4228d  
    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

    r39f1d5c r0d4228d  
    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.