Changeset 6b98ab9 for src


Ignore:
Timestamp:
Aug 6, 2018, 5:46:13 PM (6 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
Children:
230101d
Parents:
a4e5a1a (diff), 99c7aa2 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'fix/negative_samplerate'

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_wavread.c

    ra4e5a1a r6b98ab9  
    196196  }
    197197
    198   if ( sr == 0 ) {
    199     AUBIO_ERR("source_wavread: Failed opening %s (samplerate can not be 0)\n", s->path);
     198  if ( (sint_t)sr <= 0 ) {
     199    AUBIO_ERR("source_wavread: Failed opening %s (samplerate can not be <= 0)\n", s->path);
    200200    goto beach;
    201201  }
  • src/notes/notes.c

    ra4e5a1a r6b98ab9  
    8484
    8585  o->pitch = new_aubio_pitch (pitch_method, o->pitch_buf_size, o->hop_size, o->samplerate);
     86  if (o->pitch == NULL) goto fail;
    8687  if (o->pitch_tolerance != 0.) aubio_pitch_set_tolerance (o->pitch, o->pitch_tolerance);
    8788  aubio_pitch_set_unit (o->pitch, "midi");
Note: See TracChangeset for help on using the changeset viewer.