Changeset eb34c9f for src


Ignore:
Timestamp:
Dec 29, 2021, 5:51:59 PM (3 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/crepe
Children:
1e1fa8e
Parents:
df692c7
git-author:
Paul Brossier <piem@piem.org> (01/17/19 14:43:51)
git-committer:
Paul Brossier <piem@piem.org> (12/29/21 17:51:59)
Message:

[pitch_crepe] make hdf5 optional, add an error message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/pitch/pitch_crepe.c

    rdf692c7 reb34c9f  
    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.