Merge from branch bqresample

This commit is contained in:
Chris Cannam
2021-05-11 08:21:17 +01:00
26 changed files with 635 additions and 215 deletions

View File

@@ -799,11 +799,19 @@ int main(int argc, char **argv)
usleep(10000);
}
}
}
delete[] fbuf;
for (size_t i = 0; i < channels; ++i) delete[] ibuf[i];
delete[] ibuf;
}
sf_close(sndfile);
sf_close(sndfileOut);
free(fileName);
free(fileNameOut);
if (!quiet) {
cerr << "in: " << countIn << ", out: " << countOut << ", ratio: " << float(countOut)/float(countIn) << ", ideal output: " << lrint(countIn * ratio) << ", error: " << abs(lrint(countIn * ratio) - int(countOut)) << endl;
@@ -826,7 +834,7 @@ int main(int argc, char **argv)
}
RubberBand::Profiler::dump();
return 0;
}