diff --git a/source/native-plugins/zynaddsubfx-synth.cpp b/source/native-plugins/zynaddsubfx-synth.cpp index c358465cd..f151867f1 100644 --- a/source/native-plugins/zynaddsubfx-synth.cpp +++ b/source/native-plugins/zynaddsubfx-synth.cpp @@ -327,11 +327,6 @@ private: synth->buffersize = static_cast(host->get_buffer_size(host->handle)); synth->samplerate = static_cast(host->get_sample_rate(host->handle)); - if (synth->buffersize > 32) - synth->buffersize = 32; - - synth->alias(); - config.init(); config.cfg.SoundBufferSize = synth->buffersize; config.cfg.SampleRate = static_cast(synth->samplerate); @@ -343,6 +338,11 @@ private: for (int i=0; i < synth->buffersize; ++i) denormalkillbuf[i] = (RND - 0.5f) * 1e-16f; + if (synth->buffersize > 32) + synth->buffersize = 32; + + synth->alias(); + Master::getInstance(); }