mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 12:30:12 +02:00
Implement IComponentHandler::performEdit()
This commit is contained in:
@@ -105,8 +105,9 @@ void serialize(S& s, ControlRequest& payload) {
|
||||
* information we want or the operation we want to perform. A request of type
|
||||
* `CallbackRequest(T)` should send back a `T::Response`.
|
||||
*/
|
||||
using CallbackRequest =
|
||||
std::variant<WantsConfiguration, YaComponentHandler::BeginEdit>;
|
||||
using CallbackRequest = std::variant<WantsConfiguration,
|
||||
YaComponentHandler::BeginEdit,
|
||||
YaComponentHandler::PerformEdit>;
|
||||
|
||||
template <typename S>
|
||||
void serialize(S& s, CallbackRequest& payload) {
|
||||
|
||||
@@ -81,6 +81,27 @@ class YaComponentHandler : public Steinberg::Vst::IComponentHandler {
|
||||
|
||||
virtual tresult PLUGIN_API
|
||||
beginEdit(Steinberg::Vst::ParamID id) override = 0;
|
||||
|
||||
/**
|
||||
* Message to pass through a call to `IComponentHandler::performEdit(id,
|
||||
* value_normalized)` to the component handler provided by the host.
|
||||
*/
|
||||
struct PerformEdit {
|
||||
using Response = UniversalTResult;
|
||||
|
||||
native_size_t owner_instance_id;
|
||||
|
||||
Steinberg::Vst::ParamID id;
|
||||
Steinberg::Vst::ParamValue value_normalized;
|
||||
|
||||
template <typename S>
|
||||
void serialize(S& s) {
|
||||
s.value8b(owner_instance_id);
|
||||
s.value4b(id);
|
||||
s.value8b(value_normalized);
|
||||
}
|
||||
};
|
||||
|
||||
virtual tresult PLUGIN_API
|
||||
performEdit(Steinberg::Vst::ParamID id,
|
||||
Steinberg::Vst::ParamValue valueNormalized) override = 0;
|
||||
|
||||
Reference in New Issue
Block a user