shithub: aubio

Download patch

ref: 9a9103163e5b043305b9651708301d223dd47259
parent: e7a779466868f0177d60e302c979251a9dffe2fe
author: Paul Brossier <[email protected]>
date: Sat Sep 26 02:39:01 EDT 2009

swig/aubio.i: add flags for sndfile and samplerate

--- a/swig/aubio.i
+++ b/swig/aubio.i
@@ -61,6 +61,7 @@
 
 
 /* sndfile */
+#if HAVE_SNDFILE
 extern aubio_sndfile_t * new_aubio_sndfile_ro (const char * inputfile);
 extern aubio_sndfile_t * new_aubio_sndfile_wo(aubio_sndfile_t * existingfile, const char * outputname);
 extern void aubio_sndfile_info(aubio_sndfile_t * file);
@@ -69,6 +70,7 @@
 extern int del_aubio_sndfile(aubio_sndfile_t * file);
 extern uint_t aubio_sndfile_channels(aubio_sndfile_t * file);
 extern uint_t aubio_sndfile_samplerate(aubio_sndfile_t * file);
+#endif /* HAVE_SNDFILE */
 
 /* fft */
 extern aubio_fft_t * new_aubio_fft(uint_t size, uint_t channels);
@@ -180,9 +182,11 @@
 extern void del_aubio_scale(aubio_scale_t *s);
 
 /* resampling */
+#if HAVE_LIBSAMPLERATE
 extern aubio_resampler_t * new_aubio_resampler(float ratio, uint_t type);
 extern uint_t aubio_resampler_process(aubio_resampler_t *s, fvec_t * input,  fvec_t * output);
 extern void del_aubio_resampler(aubio_resampler_t *s);
+#endif /* HAVE_LIBSAMPLERATE */
 
 /* onset detection */
 typedef enum {