changeset 497:5d9af3140f05

More (off-by-default) debug output
author Chris Cannam <cannam@all-day-breakfast.com>
date Thu, 25 May 2017 10:25:05 +0100
parents 946d850c940c
children a87e1bcce7b0
files src/vamp-hostsdk/PluginSummarisingAdapter.cpp
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/vamp-hostsdk/PluginSummarisingAdapter.cpp	Mon Mar 06 13:27:29 2017 +0000
+++ b/src/vamp-hostsdk/PluginSummarisingAdapter.cpp	Thu May 25 10:25:05 2017 +0100
@@ -906,6 +906,12 @@
                 for (map<float, double>::iterator di = distribution_c.begin();
                      di != distribution_c.end(); ++di) {
                     if (di->second > mrd) {
+#ifdef DEBUG_PLUGIN_SUMMARISING_ADAPTER
+                        cerr << "element " << di->first << " spans time "
+                             << di->second << " and so is an improved mode "
+                             << "candidate over element " << summary.mode_c
+                             << " which spanned " << mrd << endl;
+#endif
                         mrd = di->second;
                         summary.mode_c = di->first;
                     }