shithub: aubio

Download patch

ref: 6d3777af5b58c435491b933564a0b55c6b9c9cf3
parent: df9df98abce06f360f638c354a1e0ddd471bce9e
author: Paul Brossier <piem@piem.org>
date: Wed Mar 6 11:32:06 EST 2013

tests/src/io/test-sink_sndfile.c: include config, fix path

--- a/tests/src/io/test-sink_sndfile.c
+++ b/tests/src/io/test-sink_sndfile.c
@@ -1,5 +1,6 @@
 #define AUBIO_UNSTABLE 1
 #include <aubio.h>
+#include "config.h"
 #include "utils_tests.h"
 
 // this file uses the unstable aubio api, please use aubio_sink instead
@@ -26,9 +27,9 @@
   if ( argc == 4 ) samplerate = atoi(argv[3]);
 
   fvec_t *vec = new_fvec(hop_size);
-  aubio_source_sndfile_t * i = new_aubio_source_sndfile(path, samplerate, hop_size);
+  aubio_source_sndfile_t * i = new_aubio_source_sndfile(source_path, samplerate, hop_size);
   if (samplerate == 0 ) samplerate = aubio_source_sndfile_get_samplerate(i);
-  aubio_sink_sndfile_t *   o = new_aubio_sink_sndfile(outpath, samplerate);
+  aubio_sink_sndfile_t *   o = new_aubio_sink_sndfile(sink_path, samplerate);
 
   if (!i || !o) { err = 1; goto beach; }