Changeset 21e2e6db


Ignore:
Timestamp:
Dec 7, 2013, 6:38:07 PM (10 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, pitchshift, sampler, timestretch, yinfft+
Children:
5958d1e
Parents:
ce1d788
Message:

src/pitch/pitch.c: aubio_pitch_set_unit returns AUBIO_FAIL on fail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/pitch/pitch.c

    rce1d788 r21e2e6db  
    233233aubio_pitch_set_unit (aubio_pitch_t * p, char_t * pitch_unit)
    234234{
     235  uint_t err = AUBIO_OK;
    235236  aubio_pitch_mode pitch_mode;
    236237  if (strcmp (pitch_unit, "freq") == 0)
     
    247248    AUBIO_ERR ("unknown pitch detection unit %s, using default\n", pitch_unit);
    248249    pitch_mode = aubio_pitchm_default;
     250    err = AUBIO_FAIL;
    249251  }
    250252  p->mode = pitch_mode;
     
    266268      break;
    267269  }
    268   return AUBIO_OK;
     270  return err;
    269271}
    270272
Note: See TracChangeset for help on using the changeset viewer.