comparison host/vamp-simple-host.cpp @ 358:34ff6b72b0f4

Combined VC++ solution containing plugin SDK, host SDK, example plugins, and simple host projects
author Chris Cannam
date Fri, 13 Sep 2013 14:58:41 +0100
parents 8cab5a0198d6
children 629faeec0229
comparison
equal deleted inserted replaced
357:ef49ec7b71be 358:34ff6b72b0f4
459 sfinfo.samplerate, outputNo, plugin->process(plugbuf, rt), 459 sfinfo.samplerate, outputNo, plugin->process(plugbuf, rt),
460 out, useFrames); 460 out, useFrames);
461 461
462 if (sfinfo.frames > 0){ 462 if (sfinfo.frames > 0){
463 int pp = progress; 463 int pp = progress;
464 progress = lrintf((float(currentStep * stepSize) / sfinfo.frames) * 100.f); 464 progress = (int)((float(currentStep * stepSize) / sfinfo.frames) * 100.f + 0.5f);
465 if (progress != pp && out) { 465 if (progress != pp && out) {
466 cerr << "\r" << progress << "%"; 466 cerr << "\r" << progress << "%";
467 } 467 }
468 } 468 }
469 469