# HG changeset patch # User Chris Cannam # Date 1421235595 0 # Node ID 8984ab4a0213f0cd664b017835ecef0290e491b5 # Parent cfff2b6ff0fd73541956f7cf2f9adb0307a526c7 Input time better as frame value I think diff -r cfff2b6ff0fd -r 8984ab4a0213 VampTestPlugin.cpp --- a/VampTestPlugin.cpp Wed Jan 14 10:55:32 2015 +0000 +++ b/VampTestPlugin.cpp Wed Jan 14 11:39:55 2015 +0000 @@ -293,8 +293,8 @@ d.identifier = "input-timestamp"; d.name = "Input timestamp"; - d.description = "One-sample-per-step features with one value, containing the time in seconds converted from the timestamp of the corresponding process input block."; - d.unit = "s"; + d.description = "One-sample-per-step features with one value, containing the time in sample frames converted from the timestamp of the corresponding process input block."; + d.unit = "samples"; d.hasFixedBinCount = true; d.binCount = 1; d.hasKnownExtents = false; @@ -523,7 +523,7 @@ fs[m_outputNumbers["input-summary"]].push_back(f); f.values.clear(); - f.values.push_back(float(timestamp / RealTime(1, 0))); + f.values.push_back(RealTime::realTime2Frame(timestamp, m_inputSampleRate)); fs[m_outputNumbers["input-timestamp"]].push_back(f); return fs;