Changeset fd99f0d


Ignore:
Timestamp:
Dec 7, 2018, 1:24:18 AM (5 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/cnn, feature/crepe, feature/timestretch, fix/ffmpeg5, master
Children:
c2e3f44
Parents:
c41637b
git-author:
Paul Brossier <piem@piem.org> (09/29/16 13:22:22)
git-committer:
Paul Brossier <piem@piem.org> (12/07/18 01:24:18)
Message:

src/effects/timestretch.h: add get_samplerate method

Location:
src/effects
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/effects/timestretch.h

    rc41637b rfd99f0d  
    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

    rc41637b rfd99f0d  
    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

    rc41637b rfd99f0d  
    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.