Changeset 2d128da


Ignore:
Timestamp:
Sep 18, 2016, 12:54:10 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/cnn, feature/crepe, feature/pitchshift, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch
Children:
a6ba2ed1
Parents:
0ae2eb8
Message:

src/effects/pitchshift.h: add aubio_pitchshift_get_latency

Location:
src/effects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/effects/pitchshift.c

    r0ae2eb8 r2d128da  
    9898}
    9999
     100uint_t aubio_pitchshift_get_latency (aubio_pitchshift_t * p) {
     101  return rubberband_get_latency(p->rb);
     102}
     103
    100104uint_t
    101105aubio_pitchshift_set_pitchscale (aubio_pitchshift_t * p, smpl_t pitchscale)
     
    189193}
    190194
     195uint_t aubio_pitchshift_get_latency (aubio_pitchshift_t * o UNUSED) {
     196  return 0.;
     197}
     198
    191199// end of dummy implementation
    192200
  • src/effects/pitchshift.h

    r0ae2eb8 r2d128da  
    6868    smpl_t pitchscale, uint_t hop_size, uint_t samplerate);
    6969
     70/** get the latency of the pitch shifting object, in samples
     71
     72  \param o pitch shifting object as returned by ::new_aubio_pitchshift()
     73
     74  \return latency of the pitch shifting object in samples
     75
     76*/
     77uint_t aubio_pitchshift_get_latency (aubio_pitchshift_t * o);
     78
    7079/** set the pitch scale of the pitch shifting object
    7180
Note: See TracChangeset for help on using the changeset viewer.