Changes in / [a4e5a1a:6b98ab9]


Ignore:
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.