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 14cb457b55e1981e9aa0e46bb64f860abc5460c5..b841077df0a1c45f45a7080624560ff36f80d761 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 34998a6984f8371fb4ce68dc09ef1e1a058c46c9..46224b082c8ce116606f5f709ad610216329f989 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"));
   }