uses errmsg in parse_args instead of debug
authorPaul Brossier <piem@altern.org>
Mon, 15 Aug 2005 10:28:52 +0000 (10:28 +0000)
committerPaul Brossier <piem@altern.org>
Mon, 15 Aug 2005 10:28:52 +0000 (10:28 +0000)
examples/utils.c

index 46224b082c8ce116606f5f709ad610216329f989..919ebebb2de7e9fc98133ee7fa7f70f5e9610acc 100644 (file)
@@ -162,7 +162,7 @@ int parse_args (int argc, char **argv) {
                                 else if (strcmp(optarg,"kl") == 0) 
                                         type_onset = aubio_onset_kl;
                                 else {
-                                        debug("could not get onset type.\n");
+                                        errmsg("unknown onset type.\n");
                                         abort();
                                 }
                                 usedoubled = 0;
@@ -189,7 +189,7 @@ int parse_args (int argc, char **argv) {
                                 else if (strcmp(optarg,"fcomb") == 0) 
                                         type_pitch = aubio_pitch_fcomb;
                                 else {
-                                        debug("could not get pitch type.\n");
+                                        errmsg("unknown pitch type.\n");
                                         abort();
                                 }
                                 break;