Changeset 16965d5


Ignore:
Timestamp:
Sep 29, 2016, 1:22:22 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
sampler, timestretch
Children:
24914e1
Parents:
af195a5
Message:

src/effects/timestretch.h: add get_samplerate method

Location:
src/effects
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/effects/timestretch.h

    raf195a5 r16965d5  
    8585uint_t aubio_timestretch_get_latency (aubio_timestretch_t * o);
    8686
     87/** get the samplerate of the time stretching object
     88
     89  Call after new_aubio_timestretch() was called with 0 to match the original
     90  samplerate of the input file.
     91
     92  \param o time stretching object as returned by new_aubio_timestretch()
     93
     94  \return samplerate of the time stretching object
     95
     96 */
     97uint_t aubio_timestretch_get_samplerate (aubio_timestretch_t * o);
     98
    8799/** set the stretching ratio of the time stretching object
    88100
  • src/effects/timestretch_dummy.c

    raf195a5 r16965d5  
    6666}
    6767
     68uint_t aubio_timestretch_get_samplerate (aubio_timestretch_t * o UNUSED) {
     69  return 0;
     70}
     71
    6872smpl_t aubio_timestretch_get_pitchscale (aubio_timestretch_t * o UNUSED)
    6973{
  • src/effects/timestretch_rubberband.c

    raf195a5 r16965d5  
    119119}
    120120
     121uint_t
     122aubio_timestretch_get_samplerate (aubio_timestretch_t * p)
     123{
     124  return p->samplerate;
     125}
     126
    121127uint_t aubio_timestretch_get_latency (aubio_timestretch_t * p) {
    122128  return rubberband_get_latency(p->rb);
Note: See TracChangeset for help on using the changeset viewer.