[LV2] How to handle sample rate changes?

Stefan Westerfeld stefan at space.twc.de
Mon Oct 3 13:47:08 PDT 2016


I'm considering adding LV2 Instrument support to BEAST. Unlike qtractor or
Ardour, BEAST doesn't have a concept of project|session sample rate.  It is
renegotiated every time the user presses play, and thus subject to change. Now
the standard LV2 API doesn't allow me to change the sample rate at runtime, as
it is set during initialization.

After some research I found the LV2 Options Interface, and the possibilty to
dynamically supply the plugin with a new sample rate. So is this the way to do

I suspect that many plugins will assume that the sample rate is constant,
because the standard LV2 API suggests it. Should we in this case file feature

   Cu... Stefan
Stefan Westerfeld, http://space.twc.de/~stefan

More information about the Devel mailing list