Implement IUnitInfo::getSelectedUnit

This commit is contained in:
Robbert van der Helm
2020-12-27 16:48:47 +01:00
parent fbef37b924
commit 70c5792593
6 changed files with 33 additions and 4 deletions
@@ -324,6 +324,22 @@ class YaUnitInfo : public Steinberg::Vst::IUnitInfo {
int32 programIndex,
int16 midiPitch,
Steinberg::Vst::String128 name /*out*/) override = 0;
/**
* Message to pass through a call to `IUnitInfo::getSelectedUnit()` to the
* Wine plugin host.
*/
struct GetSelectedUnit {
using Response = PrimitiveWrapper<Steinberg::Vst::UnitID>;
native_size_t instance_id;
template <typename S>
void serialize(S& s) {
s.value8b(instance_id);
}
};
virtual Steinberg::Vst::UnitID PLUGIN_API getSelectedUnit() override = 0;
virtual tresult PLUGIN_API
selectUnit(Steinberg::Vst::UnitID unitId) override = 0;