AUBIO_FREE (p);
}
+uint_t aubio_pitchshift_get_latency (aubio_pitchshift_t * p) {
+ return rubberband_get_latency(p->rb);
+}
+
uint_t
aubio_pitchshift_set_pitchscale (aubio_pitchshift_t * p, smpl_t pitchscale)
{
return 0.;
}
+uint_t aubio_pitchshift_get_latency (aubio_pitchshift_t * o UNUSED) {
+ return 0.;
+}
+
// end of dummy implementation
#endif /* HAVE_RUBBERBAND */
aubio_pitchshift_t *new_aubio_pitchshift (const char_t * method,
smpl_t pitchscale, uint_t hop_size, uint_t samplerate);
+/** get the latency of the pitch shifting object, in samples
+
+ \param o pitch shifting object as returned by ::new_aubio_pitchshift()
+
+ \return latency of the pitch shifting object in samples
+
+*/
+uint_t aubio_pitchshift_get_latency (aubio_pitchshift_t * o);
+
/** set the pitch scale of the pitch shifting object
\param o pitch shifting object as returned by new_aubio_pitchshift()