make per-region note-tracking in MidiPlaylist work correctly, or something very close to it. note that locking isssues remain when regions (and thus note trackers) are removed

git-svn-id: svn://localhost/ardour2/branches/3.0@5912 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2009-10-25 14:42:46 +00:00
parent e0a2d49869
commit de5e463904
6 changed files with 73 additions and 30 deletions

View file

@ -77,9 +77,10 @@ print_help (const char *execname)
static void
list_debug_options ()
{
cerr << _("The following debug options are available. Their use is case-insensitive.") << "\n\n";
cerr << _("The following debug options are available. Separate multipe options with commas. Names are case-insensitive.") << "\n\n";
cerr << "\tMidiSourceIO\n";
cerr << "\tMidiPlaylistIO\n";
cerr << "\tMidiDiskstreamIO\n";
}
static int
@ -99,12 +100,21 @@ parse_debug_options (const char* str)
return 1;
}
if (strcasecmp (p, "all") == 0) {
ARDOUR::set_debug_bits (~0ULL);
free (copy);
return 0;
}
if (strcasecmp (p, "midisourceio") == 0) {
bits |= ARDOUR::DEBUG::MidiSourceIO;
}
if (strcasecmp (p, "midiplaylistio") == 0) {
bits |= ARDOUR::DEBUG::MidiPlaylistIO;
}
if (strcasecmp (p, "mididiskstreamio") == 0) {
bits |= ARDOUR::DEBUG::MidiDiskstreamIO;
}
p = strtok_r (0, ",", &sp);
}