Johannes Lorenz
5c37aa2e2e
Fixes #6786 : Lv2Proc: Fix losing automation on export ( #6944 )
...
This PR is a about reloading an `Lv2Proc`, e.g. in case of a sample rate
change.
Prior to this PR, #6419 handled this by first saving the models into
XML, then destroying and re-initializing the whole `Lv2Proc` and finally
reloading the saved XML. However, #6786 shows that the automation is not
properly restored in such a case.
This PR thus attempts to not destroy the automatable models, just
everything else. This is done by moving `Lv2Proc::createPorts` into the
CTOR before calling `Lv2Proc::initPlugin`, which makes `initPlugin()`
and `shutdownPlugin()` proper inverses of each other (note that in jalv,
the ports are also created before the features are). The new class
`Lv2ProcSuspender` adds an RAII interface for reloading the `Lv2Proc`.
Note that another, possibly more clean approach would be to separate the
features and the plugin from the models ("controls"), to then only
destroy the features and the plugin. This could be done by having
`Lv2Effect` contain an `Lv2Proc` and `Lv2FxControls` contain an
`Lv2ProcControls`. Then the effect classes are the usual way round, and
you still maintain the separation between processor and controls in the
core LV2 code. (Similarly for the instrument, except we don't have a
processor/control split for instruments, so an instance of each class
would be contained within the same instrument instance.) - Thanks for
this proposal to @DomClark .
2023-11-12 02:20:53 +01:00
..
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-07 21:12:23 -05:00
2023-08-31 07:12:00 -04:00
2023-01-05 17:58:49 -05:00
2023-07-25 18:03:18 +02:00
2023-01-05 17:58:49 -05:00
2023-07-25 18:03:18 +02:00
2023-07-25 18:03:18 +02:00
2023-09-24 17:36:59 +02:00
2023-09-04 19:33:42 -04:00
2023-08-24 19:16:02 +01:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-10-31 23:45:02 +01:00
2023-07-25 18:03:18 +02:00
2023-01-05 17:58:49 -05:00
2023-07-25 18:03:18 +02:00
2023-07-25 18:03:18 +02:00
2023-01-05 17:58:49 -05:00
2023-07-25 18:03:18 +02:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-08-24 19:16:02 +01:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-10-06 18:37:46 -04:00
2023-01-05 17:58:49 -05:00
2023-10-06 18:37:46 -04:00
2023-10-06 18:37:46 -04:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-08-24 19:16:02 +01:00
2023-10-29 11:16:39 +01:00
2023-01-05 17:58:49 -05:00
2023-08-24 19:16:02 +01:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-08-24 19:16:02 +01:00
2023-11-11 18:09:38 -05:00
2023-08-24 19:16:02 +01:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-08-24 17:28:34 +01:00
2023-08-22 12:08:56 +09:00
2023-01-05 17:58:49 -05:00
2023-08-24 19:16:02 +01:00
2023-08-22 12:08:56 +09:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-10-21 18:21:21 +02:00
2023-08-24 19:16:02 +01:00
2023-09-22 20:07:25 +01:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-08-24 17:28:34 +01:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-07 21:12:23 -05:00
2023-11-10 07:10:44 -08:00
2023-08-22 12:08:56 +09:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-02-18 09:32:27 -06:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-08-24 19:16:02 +01:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-08-24 19:16:02 +01:00
2023-01-05 17:58:49 -05:00
2023-04-29 16:53:58 +02:00
2023-01-05 17:58:49 -05:00
2023-08-24 19:16:02 +01:00
2023-01-05 17:58:49 -05:00
2023-11-10 14:26:31 -05:00
2023-01-05 17:58:49 -05:00
2023-09-28 20:23:35 -04:00
2023-10-29 11:16:39 +01:00
2023-08-24 19:16:02 +01:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-08-24 19:16:02 +01:00
2023-08-24 19:16:02 +01:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-09-16 13:35:15 +02:00
2023-08-24 19:16:02 +01:00
2023-01-05 17:58:49 -05:00
2023-08-31 19:21:26 +02:00
2023-08-28 13:14:19 -04:00
2023-08-31 19:21:26 +02:00
2023-08-31 19:21:26 +02:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-02-18 09:32:27 -06:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-10-29 11:16:39 +01:00
2023-01-05 17:58:49 -05:00
2008-07-22 11:36:50 +00:00
2023-08-24 19:16:02 +01:00
2023-10-29 11:16:39 +01:00
2023-01-05 17:58:49 -05:00
2023-08-24 19:16:02 +01:00
2023-10-07 21:01:30 -07:00
2023-01-05 17:58:49 -05:00
2023-10-07 21:01:30 -07:00
2023-10-29 11:16:39 +01:00
2023-01-05 17:58:49 -05:00
2023-09-12 20:35:54 +02:00
2023-02-21 21:03:00 +01:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-08-24 19:16:02 +01:00
2023-09-24 17:36:59 +02:00
2023-01-05 17:58:49 -05:00
2023-09-24 17:36:59 +02:00
2023-08-24 19:16:02 +01:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-09-24 17:36:59 +02:00
2023-09-24 17:36:59 +02:00
2023-08-24 19:16:02 +01:00
2023-01-05 17:58:49 -05:00
2023-09-24 17:36:59 +02:00
2023-09-24 17:36:59 +02:00
2023-11-12 02:20:53 +01:00
2023-08-24 19:16:02 +01:00
2023-11-12 02:20:53 +01:00
2023-08-24 19:16:02 +01:00
2023-01-05 17:58:49 -05:00
2023-09-28 20:23:35 -04:00
2023-09-24 17:36:59 +02:00
2023-10-27 18:51:00 -04:00
2023-01-05 17:58:49 -05:00
2023-08-24 19:16:02 +01:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-08-22 12:08:56 +09:00
2023-08-31 12:55:02 -04:00
2023-01-05 17:58:49 -05:00
2023-09-22 20:07:25 +01:00
2023-01-05 17:58:49 -05:00
2023-09-28 20:23:35 -04:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-08-24 19:16:02 +01:00
2023-08-24 19:16:02 +01:00
2023-07-22 23:03:31 +02:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-08-22 12:08:56 +09:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-05-10 20:14:24 +09:00
2023-01-05 17:58:49 -05:00
2023-06-02 22:17:03 +02:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-11-12 02:20:53 +01:00
2023-08-31 17:17:00 +02:00
2023-08-31 17:17:00 +02:00
2023-01-05 17:58:49 -05:00
2023-08-24 19:16:02 +01:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-08-24 19:16:02 +01:00
2023-01-05 17:58:49 -05:00
2023-08-22 12:08:56 +09:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-08-22 12:08:56 +09:00
2023-01-05 17:58:49 -05:00
2023-08-24 19:16:02 +01:00
2023-08-31 12:55:02 -04:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-08-24 19:16:02 +01:00
2023-08-24 19:16:02 +01:00
2023-05-06 13:16:07 +09:00
2023-08-24 19:16:02 +01:00
2023-08-24 19:16:02 +01:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-08-24 19:16:02 +01:00
2023-01-05 17:58:49 -05:00
2023-08-24 19:16:02 +01:00
2023-08-24 19:16:02 +01:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-08-24 19:16:02 +01:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-08-24 19:16:02 +01:00
2023-09-22 00:18:23 +01:00
2023-01-05 17:58:49 -05:00
2023-08-25 14:43:09 -04:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-08-28 13:14:19 -04:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-10-01 09:57:13 +02:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-08-29 15:32:11 -04:00
2023-08-24 19:16:02 +01:00
2023-08-24 19:16:02 +01:00
2023-08-22 12:08:56 +09:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-07-16 14:11:24 +02:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-10-29 11:16:39 +01:00
2023-08-24 19:16:02 +01:00
2023-10-29 11:16:39 +01:00
2023-04-29 16:53:58 +02:00
2023-01-05 17:58:49 -05:00
2023-08-24 19:16:02 +01:00
2023-08-24 19:16:02 +01:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-08-24 19:16:02 +01:00
2023-08-24 19:16:02 +01:00
2023-08-24 19:16:02 +01:00
2023-08-24 19:16:02 +01:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-08-28 13:14:19 -04:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-08-02 23:05:27 -04:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00
2023-01-05 17:58:49 -05:00