ref: 3d2fe263adc0b0308acdc8c2ba5fdbc646c953a6
parent: ae9fd9012931f46f56443ea751bcdbb6b1cce359
author: Paul Brossier <piem@piem.org>
date: Thu Mar 21 16:36:30 EDT 2013
src/io/source_sndfile.{c,h}: fix include and prototype, bypass resampler for now
--- a/src/io/source_sndfile.c
+++ b/src/io/source_sndfile.c
@@ -26,8 +26,9 @@
#include <sndfile.h>
#include "aubio_priv.h"
-#include "source_sndfile.h"
#include "fvec.h"
+#include "fmat.h"
+#include "source_sndfile.h"
#include "temporal/resampler.h"
@@ -183,7 +184,7 @@
if (s->ratio != 1) {
AUBIO_ERR("source_sndfile: no multi channel resampling yet");
return;
- data = s->input_data->data;
+ //data = s->input_data->data;
} else
#endif /* HAVE_SAMPLERATE */
{
@@ -199,7 +200,7 @@
#ifdef HAVE_SAMPLERATE
if (s->resampler) {
- aubio_resampler_do(s->resampler, s->input_data, read_data);
+ //aubio_resampler_do(s->resampler, s->input_data, read_data);
}
#endif /* HAVE_SAMPLERATE */
--- a/src/io/source_sndfile.h
+++ b/src/io/source_sndfile.h
@@ -84,7 +84,7 @@
source. `hop_size` if enough frames could be read, less otherwise.
*/
-void aubio_source_sndfile_do(aubio_source_sndfile_t * s, fmat_t * read_to, uint_t * read);
+void aubio_source_sndfile_do_multi(aubio_source_sndfile_t * s, fmat_t * read_to, uint_t * read);
/**