mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
Update SMF-load test tool
This commit is contained in:
parent
bfe655775a
commit
5d9fc950c5
2 changed files with 5 additions and 4 deletions
|
|
@ -7,7 +7,8 @@ LDFLAGS = -L $(AD)/build/libs/pbd
|
||||||
LDFLAGS += -L $(AD)/build/libs/temporal
|
LDFLAGS += -L $(AD)/build/libs/temporal
|
||||||
LDFLAGS += -L $(AD)/build/libs/evoral
|
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 += -ltemporal -Xlinker -rpath=$(AD)/build/libs/temporal
|
||||||
LDLIBS += -levoral -Xlinker -rpath=$(AD)/build/libs/evoral
|
LDLIBS += -levoral -Xlinker -rpath=$(AD)/build/libs/evoral
|
||||||
LDLIBS += `pkg-config --libs libxml-2.0 glibmm-2.4`
|
LDLIBS += `pkg-config --libs libxml-2.0 glibmm-2.4`
|
||||||
|
|
|
||||||
|
|
@ -18,10 +18,10 @@ main (int argc, char** argv)
|
||||||
::exit (EXIT_FAILURE);
|
::exit (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#if 1
|
||||||
Evoral::SMF smf;
|
Evoral::SMF smf;
|
||||||
smf.open (fn);
|
smf.open (fn, 1, true);
|
||||||
printf ("SMF '%s' tracks=%d, ppqn=%d (n_notes: %ld)\n", fn, smf.num_tracks (), smf.ppqn(), smf.n_note_on_events ());
|
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
|
#else
|
||||||
FILE* f = g_fopen(fn, "r");
|
FILE* f = g_fopen(fn, "r");
|
||||||
if (!f) {
|
if (!f) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue