Changeset 3c86eb1 for src


Ignore:
Timestamp:
Sep 4, 2005, 5:46:32 PM (19 years ago)
Author:
Paul Brossier <piem@altern.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:
77671b4
Parents:
5e491b3b
Message:

fix resample for 64bit (thanks to Lachlan Davison)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/resample.c

    r5e491b3b r3c86eb1  
    2626
    2727struct _aubio_resampler_t {
    28         SRC_DATA        *proc;
     28        SRC_DATA  *proc;
    2929        SRC_STATE *stat;
    3030        float ratio;
     
    3434aubio_resampler_t * new_aubio_resampler(float ratio, uint_t type) {
    3535        aubio_resampler_t * s  = AUBIO_NEW(aubio_resampler_t);
    36         sint_t error = 0;
    37         s->stat = src_new (type, 1, (sint_t*)error) ; /* only one channel */
     36        int error = 0;
     37        s->stat = src_new (type, 1, &error) ; /* only one channel */
    3838        s->proc = AUBIO_NEW(SRC_DATA);
    3939        if (error) AUBIO_ERR("%s\n",src_strerror(error));
Note: See TracChangeset for help on using the changeset viewer.