Mercurial > hg > silvet
comparison src/Silvet.cpp @ 285:8aff275f16b5
Fix failure to take starting timestamp into account
author | Chris Cannam |
---|---|
date | Thu, 07 Aug 2014 16:06:02 +0100 |
parents | e5f897b2d5e8 |
children | 19fd6cb033c7 |
comparison
equal
deleted
inserted
replaced
284:92869203036f | 285:8aff275f16b5 |
---|---|
846 int postFilterLatency = int(m_postFilter[0]->getSize() / 2); | 846 int postFilterLatency = int(m_postFilter[0]->getSize() / 2); |
847 | 847 |
848 Feature f; | 848 Feature f; |
849 | 849 |
850 f.hasTimestamp = true; | 850 f.hasTimestamp = true; |
851 f.timestamp = RealTime::fromSeconds | 851 f.timestamp = m_startTime + RealTime::fromSeconds |
852 (columnDuration * (start - postFilterLatency) + 0.02); | 852 (columnDuration * (start - postFilterLatency) + 0.02); |
853 | 853 |
854 f.hasDuration = true; | 854 f.hasDuration = true; |
855 f.duration = RealTime::fromSeconds | 855 f.duration = RealTime::fromSeconds |
856 (columnDuration * (end - start)); | 856 (columnDuration * (end - start)); |