Mercurial > hg > vamp-plugin-sdk
diff src/vamp-hostsdk/PluginBufferingAdapter.cpp @ 360:2741e4323d1d
Merge
author | Chris Cannam |
---|---|
date | Fri, 28 Mar 2014 13:13:08 +0000 |
parents | bd9a63d35e71 |
children | 656ce0eae135 |
line wrap: on
line diff
--- a/src/vamp-hostsdk/PluginBufferingAdapter.cpp Fri Mar 28 13:11:26 2014 +0000 +++ b/src/vamp-hostsdk/PluginBufferingAdapter.cpp Fri Mar 28 13:13:08 2014 +0000 @@ -617,11 +617,11 @@ double secs = feature.timestamp.sec; secs += feature.timestamp.nsec / 1e9; m_fixedRateFeatureNos[outputNo] = - int(secs * m_outputs[outputNo].sampleRate + 0.5); + int(secs * double(m_outputs[outputNo].sampleRate) + 0.5); } feature.timestamp = RealTime::fromSeconds - (m_fixedRateFeatureNos[outputNo] / m_outputs[outputNo].sampleRate); + (m_fixedRateFeatureNos[outputNo] / double(m_outputs[outputNo].sampleRate)); feature.hasTimestamp = true;