Initialize model pre-run buffer to zero. Update to latest devel NAM Core with pre-warm instead of anti-pop.

This commit is contained in:
Mike Oliphant
2023-08-18 13:20:27 -07:00
parent 88c8441f0b
commit 46a73d83fa
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -120,6 +120,7 @@ namespace NAM {
if (const int32_t numSamples = nam->maxBufferSize)
{
float* buffer = new float[numSamples];
memset(buffer, 0, numSamples * sizeof(float));
std::unordered_map<std::string, double> params = {};
model->process(&buffer, &buffer, 1, numSamples, 1.0, 1.0, params);