Changeset cad7e91


Ignore:
Timestamp:
Nov 28, 2016, 6:48:03 PM (8 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, sampler, yinfft+
Children:
c8e08c2
Parents:
2f89ef4
Message:

src/io/source_sndfile.c: add missing floor in ratio comparison

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_sndfile.c

    r2f89ef4 rcad7e91  
    141141    if (s->ratio > 1) {
    142142      // we would need to add a ring buffer for these
    143       if ( (uint_t)(s->input_hop_size * s->ratio + .5)  != s->hop_size ) {
     143      if ( (uint_t)FLOOR(s->input_hop_size * s->ratio + .5)  != s->hop_size ) {
    144144        AUBIO_ERR("source_sndfile: can not upsample %s from %d to %d\n", s->path,
    145145            s->input_samplerate, s->samplerate);
Note: See TracChangeset for help on using the changeset viewer.