LMMS/lmms — pull request #395 by diizy (2014-03-01 11:48:05+00:00)
Title: Fix zynaddsubfx export with higher samplerates

We were using the "AudioOut" method for getting output from zyn, but after a brief perusal of the source code, it appears there's another method right next to it called "GetAudioOutSamples" which is intended for the kind of use we use Zyn for (controlling from an external program), which also takes buffer size and sample rate as arguments.

So I switched the code in localzynaddsubfx.cpp to use this other method, and it seems that after that, the export works perfectly on all sample rates.

It also appears that we've been restarting zynaddsubfx every time sample rate changes and hoped for it to change the output sample rate that way. With this update, we might not have to do that anymore, but I'm not actually sure about that so I didn't touch that part of the code.