added dummy assignment to make egcs happy, use in woodblock path
authorPaul Brossier <piem@altern.org>
Sun, 14 Aug 2005 18:44:58 +0000 (18:44 +0000)
committerPaul Brossier <piem@altern.org>
Sun, 14 Aug 2005 18:44:58 +0000 (18:44 +0000)
examples/Makefile.am
examples/utils.c

index 14cb457..b841077 100644 (file)
@@ -3,7 +3,7 @@ SUBDIRS = tests
 endif
 
 # global flags
-AM_CFLAGS = -I$(srcdir)/../src -I$(srcdir)/../ext @LADCCA_CFLAGS@
+AM_CFLAGS = -DAUBIO_PREFIX=\"$(prefix)\" -I$(srcdir)/../src -I$(srcdir)/../ext @LADCCA_CFLAGS@
 AM_LDFLAGS = -L../src -L../ext @LADCCA_LIBS@ -laubioext -laubio
 #AM_SOURCES = utils.c
 
index 34998a6..46224b0 100644 (file)
@@ -21,7 +21,7 @@ cca_client_t * aubio_cca_client;
 /* settings */
 const char * output_filename = NULL;
 const char * input_filename  = NULL;
-const char * onset_filename  = "/usr/share/sounds/aubio/woodblock.aiff";
+const char * onset_filename  = AUBIO_PREFIX "/share/sounds/" PACKAGE "/woodblock.aiff";
 int frames = 0;
 int verbose = 0;
 int usejack = 0;
@@ -237,7 +237,8 @@ void examples_common_init(int argc,char ** argv) {
 
   woodblock = new_fvec(buffer_size,1);
   if (output_filename || usejack) {
-          (onsetfile = new_aubio_sndfile_ro(onset_filename)) ||
+          /* dummy assignement to keep egcs happy */
+          isonset = (onsetfile = new_aubio_sndfile_ro(onset_filename)) ||
                   (onsetfile = new_aubio_sndfile_ro("sounds/woodblock.aiff")) ||
                   (onsetfile = new_aubio_sndfile_ro("../sounds/woodblock.aiff"));
   }