Write back preset meta data set by the plugin

The docs don't mention that this is a thing you should support, but
`IStreamAttributes` doesn't make much sense without this.
This commit is contained in:
Robbert van der Helm
2021-01-10 17:24:38 +01:00
parent 8971a65825
commit c514233922
4 changed files with 79 additions and 29 deletions
@@ -42,6 +42,13 @@ class YaAttributeList : public Steinberg::Vst::IAttributeList {
DECLARE_FUNKNOWN_METHODS
/**
* Write the attribute list a host provided `IAttributeList`. This is used
* in `YaBStream::write_back` to write any preset meta data back to the host
* for hosts that support it.
*/
tresult write_back(Steinberg::Vst::IAttributeList* stream) const;
virtual tresult PLUGIN_API setInt(AttrID id, int64 value) override;
virtual tresult PLUGIN_API getInt(AttrID id, int64& value) override;
virtual tresult PLUGIN_API setFloat(AttrID id, double value) override;