Changeset fe9c314 for src


Ignore:
Timestamp:
Oct 15, 2009, 3:37:08 PM (15 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
24d4433
Parents:
c9cebe1
Message:

src/temporal/resampler.{c,h}: use smpl_t, and convet that to a double for libsamplerate

Location:
src/temporal
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/temporal/resampler.c

    rc9cebe1 rfe9c314  
    3131        SRC_DATA  *proc;
    3232        SRC_STATE *stat;
    33         float ratio;
     33        smpl_t ratio;
    3434        uint_t type;
    3535};
    3636
    37 aubio_resampler_t * new_aubio_resampler(float ratio, uint_t type) {
     37aubio_resampler_t * new_aubio_resampler(smpl_t ratio, uint_t type) {
    3838        aubio_resampler_t * s  = AUBIO_NEW(aubio_resampler_t);
    3939        int error = 0;
     
    5656        s->proc->input_frames = input->length;
    5757        s->proc->output_frames = output->length;
    58         s->proc->src_ratio = s->ratio;
     58        s->proc->src_ratio = (double)s->ratio;
    5959        for (i = 0 ; i< input->channels; i++)
    6060        {
  • src/temporal/resampler.h

    rc9cebe1 rfe9c314  
    4343
    4444*/
    45 aubio_resampler_t * new_aubio_resampler(float ratio, uint_t type);
     45aubio_resampler_t * new_aubio_resampler(smpl_t ratio, uint_t type);
    4646
    4747/** delete resampler object */
Note: See TracChangeset for help on using the changeset viewer.