Mercurial > hg > piper-cpp
diff vamp-server/simple-server.cpp @ 193:bc35e19f3345
Merge branch 'master' of https://github.com/piper-audio/piper-cpp into test/plugin-stub-configured-framing
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Tue, 07 Feb 2017 16:35:32 +0000 |
parents | 52322dde68ea |
children | e0e3d9efa774 |
line wrap: on
line diff
--- a/vamp-server/simple-server.cpp Tue Feb 07 16:35:16 2017 +0000 +++ b/vamp-server/simple-server.cpp Tue Feb 07 16:35:32 2017 +0000 @@ -495,7 +495,7 @@ mapper.markConfigured (h, creq.configuration.channelCount, - creq.configuration.framing.blockSize); + response.configurationResponse.framing.blockSize); response.success = true; } break; @@ -521,8 +521,12 @@ const float **fbuffers = new const float *[channels]; for (int i = 0; i < channels; ++i) { if (int(preq.inputBuffers[i].size()) != mapper.getBlockSize(h)) { + ostringstream os; + os << "wrong block size supplied to process (" + << preq.inputBuffers[i].size() + << ", expecting " << mapper.getBlockSize(h) << ")" << ends; delete[] fbuffers; - throw runtime_error("wrong block size supplied to process"); + throw runtime_error(os.str()); } fbuffers[i] = preq.inputBuffers[i].data(); }