Mercurial > hg > svcore
changeset 1382:0a729b57b4e4
Merge
author | Chris Cannam |
---|---|
date | Tue, 21 Feb 2017 21:10:15 +0000 |
parents | ce08318aad83 (current diff) 96a6ea30933e (diff) |
children | f204f2fcb15e |
files | |
diffstat | 2 files changed, 10 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/data/fileio/CodedAudioFileReader.cpp Tue Feb 21 21:08:14 2017 +0000 +++ b/data/fileio/CodedAudioFileReader.cpp Tue Feb 21 21:10:15 2017 +0000 @@ -525,8 +525,12 @@ ratio, true); - if (m_frameCount + out > sv_frame_t(double(m_fileFrameCount) * ratio)) { - out = sv_frame_t(double(m_fileFrameCount) * ratio) - m_frameCount; + SVDEBUG << "CodedAudioFileReader::pushBufferResampling: resampled padFrames to " << out << " frames" << endl; + + sv_frame_t expected = sv_frame_t(round(double(m_fileFrameCount) * ratio)); + if (m_frameCount + out > expected) { + out = expected - m_frameCount; + SVDEBUG << "CodedAudioFileReader::pushBufferResampling: clipping that to " << out << " to avoid producing more samples than desired" << endl; } pushBufferNonResampling(m_resampleBuffer, out);
--- a/plugin/PiperVampPluginFactory.cpp Tue Feb 21 21:08:14 2017 +0000 +++ b/plugin/PiperVampPluginFactory.cpp Tue Feb 21 21:10:15 2017 +0000 @@ -28,7 +28,7 @@ #define CAPNP_LITE 1 #endif -#include "vamp-client/qt/AutoPlugin.h" +#include "vamp-client/qt/PiperAutoPlugin.h" #include "vamp-client/qt/ProcessQtTransport.h" #include "vamp-client/CapnpRRClient.h" @@ -123,10 +123,10 @@ return 0; } - SVDEBUG << "PiperVampPluginFactory: Creating Piper AutoPlugin for server " + SVDEBUG << "PiperVampPluginFactory: Creating PiperAutoPlugin for server " << m_origins[identifier] << ", identifier " << identifier << endl; - auto ap = new piper_vamp::client::AutoPlugin + auto ap = new piper_vamp::client::PiperAutoPlugin (m_origins[identifier].toStdString(), psd.pluginKey, float(inputSampleRate), @@ -229,7 +229,7 @@ piper_vamp::ListResponse resp; try { - resp = client.listPluginData(req); + resp = client.list(req); } catch (piper_vamp::client::ServerCrashed) { SVDEBUG << "PiperVampPluginFactory: Piper server crashed" << endl; errorMessage = QObject::tr