*/
smpl_t aubio_timestretch_get_transpose (aubio_timestretch_t * o);
+/** seek to a posisition the transposition of the time stretching object, in semitones
+
+ \param o time stretching object as returned by ::new_aubio_timestretch()
+ \param pos position to seek to, in frames
+
+ \return transposition of the time stretching object, in semitones
+
+*/
+uint_t aubio_timestretch_seek(aubio_timestretch_t * o, uint_t pos);
+
#ifdef __cplusplus
}
#endif
return 0.;
}
+uint_t aubio_timestretch_seek(aubio_timestretch_t *o UNUSED, uint_t pos UNUSED) {
+ return AUBIO_FAIL;
+}
// end of dummy implementation
#endif /* HAVE_RUBBERBAND */
}
}
+uint_t
+aubio_timestretch_seek (aubio_timestretch_t *p, uint_t pos)
+{
+ p->eof = 0;
+ rubberband_reset(p->rb);
+ return aubio_source_seek(p->source, pos);
+}
+
#endif