Mercurial > hg > vamp-plugin-sdk
diff 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 |
line wrap: on
line diff
--- a/host/vamp-simple-host.cpp Wed May 08 10:48:43 2013 +0100 +++ b/host/vamp-simple-host.cpp Fri Sep 13 14:58:41 2013 +0100 @@ -461,7 +461,7 @@ if (sfinfo.frames > 0){ int pp = progress; - progress = lrintf((float(currentStep * stepSize) / sfinfo.frames) * 100.f); + progress = (int)((float(currentStep * stepSize) / sfinfo.frames) * 100.f + 0.5f); if (progress != pp && out) { cerr << "\r" << progress << "%"; }