Changeset 16ed726


Ignore:
Timestamp:
Nov 5, 2009, 11:19:40 PM (14 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:
2e4fb04
Parents:
e5b9a46
Message:

src/temporal/resampler.h: add dummy functions in case samplerate is not built in

Location:
src/temporal
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/temporal/resampler.c

    re5b9a46 r16ed726  
    2121#include "config.h"
    2222
     23#include "aubio_priv.h"
     24#include "fvec.h"
     25#include "temporal/resampler.h"
     26
    2327#if HAVE_SAMPLERATE
    2428
    2529#include <samplerate.h>         /* from libsamplerate */
    26 
    27 #include "aubio_priv.h"
    28 #include "fvec.h"
    29 #include "temporal/resampler.h"
    3030
    3131struct _aubio_resampler_t
     
    7474}
    7575
     76#else
     77struct _aubio_resampler_t
     78{
     79};
     80
     81aubio_resampler_t *
     82new_aubio_resampler (smpl_t ratio UNUSED, uint_t type UNUSED)
     83{
     84  AUBIO_ERR ("aubio was not compiled with libsamplerate\n");
     85  return NULL;
     86}
     87
     88void
     89del_aubio_resampler (aubio_resampler_t * s)
     90{
     91}
     92
     93void
     94aubio_resampler_do (aubio_resampler_t * s, fvec_t * input, fvec_t * output)
     95{
     96}
    7697#endif /* HAVE_SAMPLERATE */
  • src/temporal/resampler.h

    re5b9a46 r16ed726  
    3030 
    3131*/
    32 
    33 #if HAVE_SAMPLERATE
    3432
    3533#ifdef __cplusplus
     
    6563#endif
    6664
    67 #endif /* HAVE_SAMPLERATE */
    68 
    6965#endif /* _RESAMPLE_H */
Note: See TracChangeset for help on using the changeset viewer.