mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 04:20:13 +02:00
Implement IComponentHandler::endEdit()
This commit is contained in:
@@ -107,7 +107,8 @@ void serialize(S& s, ControlRequest& payload) {
|
||||
*/
|
||||
using CallbackRequest = std::variant<WantsConfiguration,
|
||||
YaComponentHandler::BeginEdit,
|
||||
YaComponentHandler::PerformEdit>;
|
||||
YaComponentHandler::PerformEdit,
|
||||
YaComponentHandler::EndEdit>;
|
||||
|
||||
template <typename S>
|
||||
void serialize(S& s, CallbackRequest& payload) {
|
||||
|
||||
@@ -105,6 +105,25 @@ class YaComponentHandler : public Steinberg::Vst::IComponentHandler {
|
||||
virtual tresult PLUGIN_API
|
||||
performEdit(Steinberg::Vst::ParamID id,
|
||||
Steinberg::Vst::ParamValue valueNormalized) override = 0;
|
||||
|
||||
/**
|
||||
* Message to pass through a call to `IComponentHandler::endEdit(id)` to the
|
||||
* component handler provided by the host.
|
||||
*/
|
||||
struct EndEdit {
|
||||
using Response = UniversalTResult;
|
||||
|
||||
native_size_t owner_instance_id;
|
||||
|
||||
Steinberg::Vst::ParamID id;
|
||||
|
||||
template <typename S>
|
||||
void serialize(S& s) {
|
||||
s.value8b(owner_instance_id);
|
||||
s.value4b(id);
|
||||
}
|
||||
};
|
||||
|
||||
virtual tresult PLUGIN_API endEdit(Steinberg::Vst::ParamID id) override = 0;
|
||||
virtual tresult PLUGIN_API restartComponent(int32 flags) override = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user