Changeset cad7e91


Ignore:
Timestamp:
Nov 28, 2016, 6:48:03 PM (3 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, 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.