Ignore:
Timestamp:
Dec 7, 2018, 1:28:55 AM (5 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/cnn, feature/crepe, feature/timestretch, fix/ffmpeg5, master
Children:
e7d4aa0
Parents:
4559863
git-author:
Paul Brossier <piem@piem.org> (11/28/16 14:30:40)
git-committer:
Paul Brossier <piem@piem.org> (12/07/18 01:28:55)
Message:

src/effects/timestretch*: move out threaded file reading stuff, add _push and _available

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/effects/timestretch.h

    r4559863 r284fe8a  
    6464/** creation of the time stretching object
    6565
    66   \param uri path to create the source from
    6766  \param method time stretching algorithm ("default")
    6867  \param stretch initial time stretching factor
     
    7372
    7473*/
    75 aubio_timestretch_t *new_aubio_timestretch (const char_t * uri,
    76     const char_t * method, smpl_t stretch, uint_t hop_size, uint_t samplerate);
     74aubio_timestretch_t *new_aubio_timestretch (const char_t * method,
     75    smpl_t stretch, uint_t hop_size, uint_t samplerate);
     76
     77/** push length samples from in to time stretching object
     78
     79  \param o time stretching object as returned by ::new_aubio_timestretch()
     80  \param in input vector of new samples to push to time stretching object
     81  \param length number of new samples to push from input vector
     82
     83  \return number of currently available samples
     84
     85 */
     86sint_t aubio_timestretch_push(aubio_timestretch_t * o, fvec_t *in, uint_t length);
     87
     88/** get number of currently available samples from time stretching object
     89
     90  \param o time stretching object as returned by ::new_aubio_timestretch()
     91
     92  \return number of currently available samples
     93
     94 */
     95sint_t aubio_timestretch_get_available(aubio_timestretch_t * o);
    7796
    7897/** get the latency of the time stretching object, in samples
     
    157176smpl_t aubio_timestretch_get_transpose (aubio_timestretch_t * o);
    158177
    159 /** seek to a posisition the transposition of the time stretching object, in semitones
     178/** reset the time stretching object
    160179
    161180  \param o time stretching object as returned by ::new_aubio_timestretch()
    162   \param pos position to seek to, in frames
    163181
    164   \return transposition of the time stretching object, in semitones
     182  \return 0 on success, non-zero otherwise
    165183
    166184*/
    167 uint_t aubio_timestretch_seek(aubio_timestretch_t * o, uint_t pos);
    168 
    169 uint_t aubio_timestretch_queue (aubio_timestretch_t *p, const char_t *uri, uint_t samplerate);
    170 
    171 uint_t aubio_timestretch_get_opened (aubio_timestretch_t *p);
     185uint_t aubio_timestretch_reset(aubio_timestretch_t * o);
    172186
    173187#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.