Ignore:
Timestamp:
Jan 17, 2019, 2:43:51 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/crepe_org
Children:
ce09046
Parents:
6f330f12
Message:

[pitch_crepe] make hdf5 optional, add an error message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/pitch/pitch_crepe.c

    r6f330f12 r417fee0  
    414414uint_t aubio_pitch_crepe_load_params(aubio_pitch_crepe_t *o)
    415415{
     416#ifdef HAVE_HDF5
    416417  uint_t i;
    417418  aubio_tensor_t *k = NULL;
     
    512513
    513514  return AUBIO_OK;
    514 }
     515#else
     516  AUBIO_ASSERT(o);
     517  AUBIO_ERR("pitch_crepe: hdf5 support was not built in, failed loading"
     518      " crepe model\n");
     519  return AUBIO_FAIL;
     520#endif
     521}
Note: See TracChangeset for help on using the changeset viewer.