From 5d9fc950c52e0d1e85765a62b0d76fbc68cab1b8 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 25 Sep 2022 02:48:00 +0200 Subject: [PATCH] Update SMF-load test tool --- tools/smf-load/makefile | 3 ++- tools/smf-load/smfload.cc | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/smf-load/makefile b/tools/smf-load/makefile index a993db0a88..0c95968498 100644 --- a/tools/smf-load/makefile +++ b/tools/smf-load/makefile @@ -7,7 +7,8 @@ LDFLAGS = -L $(AD)/build/libs/pbd LDFLAGS += -L $(AD)/build/libs/temporal LDFLAGS += -L $(AD)/build/libs/evoral -LDLIBS = -lpbd -Xlinker -rpath=$(AD)/build/libs/pbd +LDLIBS = -Wl,--disable-new-dtags # set DT_RPATH +LDLIBS += -lpbd -Xlinker -rpath=$(AD)/build/libs/pbd LDLIBS += -ltemporal -Xlinker -rpath=$(AD)/build/libs/temporal LDLIBS += -levoral -Xlinker -rpath=$(AD)/build/libs/evoral LDLIBS += `pkg-config --libs libxml-2.0 glibmm-2.4` diff --git a/tools/smf-load/smfload.cc b/tools/smf-load/smfload.cc index 6e8ffdcfad..b20f81d073 100644 --- a/tools/smf-load/smfload.cc +++ b/tools/smf-load/smfload.cc @@ -18,10 +18,10 @@ main (int argc, char** argv) ::exit (EXIT_FAILURE); } -#if 0 +#if 1 Evoral::SMF smf; - smf.open (fn); - printf ("SMF '%s' tracks=%d, ppqn=%d (n_notes: %ld)\n", fn, smf.num_tracks (), smf.ppqn(), smf.n_note_on_events ()); + smf.open (fn, 1, true); + printf ("SMF '%s' tracks=%d, channels=%d, ppqn=%d (n_notes: %ld)\n", fn, smf.num_tracks (), smf.num_channels (), smf.ppqn(), smf.n_note_on_events ()); #else FILE* f = g_fopen(fn, "r"); if (!f) {