mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 20:40:11 +02:00
Change terminology from 'VST' to 'plugin'
This commit is contained in:
@@ -236,11 +236,11 @@ class alignas(16) DynamicSpeakerArrangement {
|
||||
};
|
||||
|
||||
/**
|
||||
* Marker struct to indicate that the other side (the Wine VST host) should send
|
||||
* an updated copy of the plugin's `AEffect` object. Should not be needed since
|
||||
* the plugin should be calling `audioMasterIOChanged()` after it has changed
|
||||
* its object, but some improperly coded plugins will only initialize their
|
||||
* flags, IO properties and parameter counts after `effEditOpen()`.
|
||||
* Marker struct to indicate that the other side (the Wine plugin host) should
|
||||
* send an updated copy of the plugin's `AEffect` object. Should not be needed
|
||||
* since the plugin should be calling `audioMasterIOChanged()` after it has
|
||||
* changed its object, but some improperly coded plugins will only initialize
|
||||
* their flags, IO properties and parameter counts after `effEditOpen()`.
|
||||
*/
|
||||
struct WantsAEffectUpdate {
|
||||
using Response = AEffect;
|
||||
@@ -500,7 +500,7 @@ void serialize(S& s, Vst2Event::Payload& payload) {
|
||||
/**
|
||||
* The result of a `getParameter` or a `setParameter` call. For `setParameter`
|
||||
* this struct won't contain any values and mostly acts as an acknowledgement
|
||||
* from the Wine VST host.
|
||||
* from the Wine plugin host.
|
||||
*/
|
||||
struct ParameterResult {
|
||||
std::optional<float> value;
|
||||
|
||||
@@ -67,7 +67,7 @@ struct WantsConfiguration {
|
||||
};
|
||||
|
||||
/**
|
||||
* When we send a control message from the plugin to the Wine VST host, this
|
||||
* When we send a control message from the plugin to the Wine plugin host, this
|
||||
* encodes the information we request or the operation we want to perform. A
|
||||
* request of type `ControlRequest(T)` should send back a `T::Response`.
|
||||
*/
|
||||
@@ -238,9 +238,9 @@ struct AudioProcessorRequest {
|
||||
};
|
||||
|
||||
/**
|
||||
* When we do a callback from the Wine VST host to the plugin, this encodes the
|
||||
* information we want or the operation we want to perform. A request of type
|
||||
* `CallbackRequest(T)` should send back a `T::Response`.
|
||||
* When we do a callback from the Wine plugin host to the plugin, this encodes
|
||||
* the 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<Vst3ContextMenuProxy::Destruct,
|
||||
|
||||
@@ -78,10 +78,7 @@ static const char* stream_meta_data_string_keys[] = {
|
||||
|
||||
YaAttributeList::YaAttributeList() noexcept {FUNKNOWN_CTOR}
|
||||
|
||||
YaAttributeList::~YaAttributeList() noexcept {
|
||||
FUNKNOWN_DTOR
|
||||
}
|
||||
|
||||
YaAttributeList::~YaAttributeList() noexcept {FUNKNOWN_DTOR}
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor"
|
||||
IMPLEMENT_FUNKNOWN_METHODS(YaAttributeList,
|
||||
@@ -89,7 +86,7 @@ IMPLEMENT_FUNKNOWN_METHODS(YaAttributeList,
|
||||
Steinberg::Vst::IAttributeList::iid)
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
std::vector<std::string> YaAttributeList::keys_and_types() const {
|
||||
std::vector<std::string> YaAttributeList::keys_and_types() const {
|
||||
std::vector<std::string> result{};
|
||||
for (const auto& [key, value] : attrs_int_) {
|
||||
result.push_back("\"" + key + "\" (int)");
|
||||
|
||||
@@ -80,17 +80,14 @@ YaBStream::YaBStream(Steinberg::IBStream* stream) {
|
||||
}
|
||||
}
|
||||
|
||||
YaBStream::~YaBStream() noexcept {
|
||||
FUNKNOWN_DTOR
|
||||
}
|
||||
|
||||
YaBStream::~YaBStream() noexcept {FUNKNOWN_DTOR}
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor"
|
||||
IMPLEMENT_REFCOUNT(YaBStream)
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
tresult PLUGIN_API YaBStream::queryInterface(Steinberg::FIDString _iid,
|
||||
void** obj) {
|
||||
tresult PLUGIN_API YaBStream::queryInterface(Steinberg::FIDString _iid,
|
||||
void** obj) {
|
||||
QUERY_INTERFACE(_iid, obj, Steinberg::FUnknown::iid, Steinberg::IBStream)
|
||||
QUERY_INTERFACE(_iid, obj, Steinberg::IBStream::iid, Steinberg::IBStream)
|
||||
QUERY_INTERFACE(_iid, obj, Steinberg::ISizeableStream::iid,
|
||||
|
||||
@@ -43,17 +43,15 @@ Vst3ComponentHandlerProxy::Vst3ComponentHandlerProxy(
|
||||
arguments_(std::move(args)){FUNKNOWN_CTOR}
|
||||
|
||||
Vst3ComponentHandlerProxy::~Vst3ComponentHandlerProxy() noexcept {
|
||||
FUNKNOWN_DTOR
|
||||
}
|
||||
|
||||
FUNKNOWN_DTOR}
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor"
|
||||
IMPLEMENT_REFCOUNT(Vst3ComponentHandlerProxy)
|
||||
IMPLEMENT_REFCOUNT(Vst3ComponentHandlerProxy)
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
tresult PLUGIN_API
|
||||
Vst3ComponentHandlerProxy::queryInterface(Steinberg::FIDString _iid,
|
||||
void** obj) {
|
||||
tresult PLUGIN_API Vst3ComponentHandlerProxy::queryInterface(
|
||||
Steinberg::FIDString _iid,
|
||||
void** obj) {
|
||||
if (YaComponentHandler::supported()) {
|
||||
QUERY_INTERFACE(_iid, obj, Steinberg::FUnknown::iid,
|
||||
Steinberg::Vst::IComponentHandler)
|
||||
|
||||
@@ -22,17 +22,15 @@ Vst3ConnectionPointProxy::Vst3ConnectionPointProxy(
|
||||
arguments_(std::move(args)){FUNKNOWN_CTOR}
|
||||
|
||||
Vst3ConnectionPointProxy::~Vst3ConnectionPointProxy() noexcept {
|
||||
FUNKNOWN_DTOR
|
||||
}
|
||||
|
||||
FUNKNOWN_DTOR}
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor"
|
||||
IMPLEMENT_REFCOUNT(Vst3ConnectionPointProxy)
|
||||
IMPLEMENT_REFCOUNT(Vst3ConnectionPointProxy)
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
tresult PLUGIN_API
|
||||
Vst3ConnectionPointProxy::queryInterface(Steinberg::FIDString _iid,
|
||||
void** obj) {
|
||||
tresult PLUGIN_API Vst3ConnectionPointProxy::queryInterface(
|
||||
Steinberg::FIDString _iid,
|
||||
void** obj) {
|
||||
if (YaConnectionPoint::supported()) {
|
||||
QUERY_INTERFACE(_iid, obj, Steinberg::FUnknown::iid,
|
||||
Steinberg::Vst::IConnectionPoint)
|
||||
|
||||
@@ -30,17 +30,15 @@ Vst3ContextMenuProxy::Vst3ContextMenuProxy(ConstructArgs&& args) noexcept
|
||||
: YaContextMenu(std::move(args.context_menu_args)),
|
||||
arguments_(std::move(args)){FUNKNOWN_CTOR}
|
||||
|
||||
Vst3ContextMenuProxy::~Vst3ContextMenuProxy() noexcept {
|
||||
FUNKNOWN_DTOR
|
||||
}
|
||||
|
||||
Vst3ContextMenuProxy::~Vst3ContextMenuProxy() noexcept {FUNKNOWN_DTOR}
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor"
|
||||
IMPLEMENT_REFCOUNT(Vst3ContextMenuProxy)
|
||||
IMPLEMENT_REFCOUNT(Vst3ContextMenuProxy)
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
tresult PLUGIN_API
|
||||
Vst3ContextMenuProxy::queryInterface(Steinberg::FIDString _iid, void** obj) {
|
||||
tresult PLUGIN_API Vst3ContextMenuProxy::queryInterface(
|
||||
Steinberg::FIDString _iid,
|
||||
void** obj) {
|
||||
if (YaContextMenu::supported()) {
|
||||
QUERY_INTERFACE(_iid, obj, Steinberg::FUnknown::iid,
|
||||
Steinberg::Vst::IContextMenu)
|
||||
|
||||
@@ -19,13 +19,11 @@
|
||||
YaContextMenuTarget::YaContextMenuTarget(ConstructArgs&& args) noexcept
|
||||
: arguments_(std::move(args)){FUNKNOWN_CTOR}
|
||||
|
||||
YaContextMenuTarget::~YaContextMenuTarget() noexcept {
|
||||
FUNKNOWN_DTOR
|
||||
}
|
||||
YaContextMenuTarget::~YaContextMenuTarget() noexcept {FUNKNOWN_DTOR}
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor"
|
||||
IMPLEMENT_FUNKNOWN_METHODS(YaContextMenuTarget,
|
||||
Steinberg::Vst::IContextMenuTarget,
|
||||
Steinberg::Vst::IContextMenuTarget::iid)
|
||||
IMPLEMENT_FUNKNOWN_METHODS(YaContextMenuTarget,
|
||||
Steinberg::Vst::IContextMenuTarget,
|
||||
Steinberg::Vst::IContextMenuTarget::iid)
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
@@ -30,17 +30,15 @@ Vst3HostContextProxy::Vst3HostContextProxy(ConstructArgs&& args) noexcept
|
||||
YaPlugInterfaceSupport(std::move(args.plug_interface_support_args)),
|
||||
arguments_(std::move(args)){FUNKNOWN_CTOR}
|
||||
|
||||
Vst3HostContextProxy::~Vst3HostContextProxy() noexcept {
|
||||
FUNKNOWN_DTOR
|
||||
}
|
||||
|
||||
Vst3HostContextProxy::~Vst3HostContextProxy() noexcept {FUNKNOWN_DTOR}
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor"
|
||||
IMPLEMENT_REFCOUNT(Vst3HostContextProxy)
|
||||
IMPLEMENT_REFCOUNT(Vst3HostContextProxy)
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
tresult PLUGIN_API
|
||||
Vst3HostContextProxy::queryInterface(Steinberg::FIDString _iid, void** obj) {
|
||||
tresult PLUGIN_API Vst3HostContextProxy::queryInterface(
|
||||
Steinberg::FIDString _iid,
|
||||
void** obj) {
|
||||
if (YaHostApplication::supported()) {
|
||||
QUERY_INTERFACE(_iid, obj, Steinberg::FUnknown::iid,
|
||||
Steinberg::Vst::IHostApplication)
|
||||
|
||||
@@ -25,18 +25,16 @@ YaMessagePtr::YaMessagePtr(IMessage& message)
|
||||
original_message_ptr_(static_cast<native_size_t>(
|
||||
reinterpret_cast<size_t>(&message))){FUNKNOWN_CTOR}
|
||||
|
||||
YaMessagePtr::~YaMessagePtr() noexcept {
|
||||
FUNKNOWN_DTOR
|
||||
}
|
||||
|
||||
YaMessagePtr::~YaMessagePtr() noexcept {FUNKNOWN_DTOR}
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor"
|
||||
IMPLEMENT_FUNKNOWN_METHODS(YaMessagePtr,
|
||||
Steinberg::Vst::IMessage,
|
||||
Steinberg::Vst::IMessage::iid)
|
||||
IMPLEMENT_FUNKNOWN_METHODS(YaMessagePtr,
|
||||
Steinberg::Vst::IMessage,
|
||||
Steinberg::Vst::IMessage::iid)
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
Steinberg::Vst::IMessage* YaMessagePtr::get_original() const noexcept {
|
||||
Steinberg::Vst::IMessage
|
||||
* YaMessagePtr::get_original() const noexcept {
|
||||
// See the docstrings on `YaMessage` and `YaMessagePtr`
|
||||
return reinterpret_cast<IMessage*>(
|
||||
static_cast<size_t>(original_message_ptr_));
|
||||
@@ -64,10 +62,7 @@ Steinberg::Vst::IAttributeList* PLUGIN_API YaMessagePtr::getAttributes() {
|
||||
|
||||
YaMessage::YaMessage() noexcept {FUNKNOWN_CTOR}
|
||||
|
||||
YaMessage::~YaMessage() noexcept {
|
||||
FUNKNOWN_DTOR
|
||||
}
|
||||
|
||||
YaMessage::~YaMessage() noexcept {FUNKNOWN_DTOR}
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor"
|
||||
IMPLEMENT_FUNKNOWN_METHODS(YaMessage,
|
||||
@@ -75,7 +70,7 @@ IMPLEMENT_FUNKNOWN_METHODS(YaMessage,
|
||||
Steinberg::Vst::IMessage::iid)
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
Steinberg::FIDString PLUGIN_API YaMessage::getMessageID() {
|
||||
Steinberg::FIDString PLUGIN_API YaMessage::getMessageID() {
|
||||
if (message_id_) {
|
||||
return message_id_->c_str();
|
||||
} else {
|
||||
|
||||
@@ -27,17 +27,15 @@ Vst3PlugFrameProxy::Vst3PlugFrameProxy(ConstructArgs&& args) noexcept
|
||||
: YaPlugFrame(std::move(args.plug_frame_args)),
|
||||
arguments_(std::move(args)){FUNKNOWN_CTOR}
|
||||
|
||||
Vst3PlugFrameProxy::~Vst3PlugFrameProxy() noexcept {
|
||||
FUNKNOWN_DTOR
|
||||
}
|
||||
|
||||
Vst3PlugFrameProxy::~Vst3PlugFrameProxy() noexcept {FUNKNOWN_DTOR}
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor"
|
||||
IMPLEMENT_REFCOUNT(Vst3PlugFrameProxy)
|
||||
IMPLEMENT_REFCOUNT(Vst3PlugFrameProxy)
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
tresult PLUGIN_API Vst3PlugFrameProxy::queryInterface(Steinberg::FIDString _iid,
|
||||
void** obj) {
|
||||
tresult PLUGIN_API Vst3PlugFrameProxy::queryInterface(
|
||||
Steinberg::FIDString _iid,
|
||||
void** obj) {
|
||||
if (YaPlugFrame::supported()) {
|
||||
QUERY_INTERFACE(_iid, obj, Steinberg::FUnknown::iid,
|
||||
Steinberg::IPlugFrame)
|
||||
|
||||
@@ -33,17 +33,15 @@ Vst3PlugViewProxy::Vst3PlugViewProxy(ConstructArgs&& args) noexcept
|
||||
std::move(args.plug_view_content_scale_support_args)),
|
||||
arguments_(std::move(args)){FUNKNOWN_CTOR}
|
||||
|
||||
Vst3PlugViewProxy::~Vst3PlugViewProxy() noexcept {
|
||||
FUNKNOWN_DTOR
|
||||
}
|
||||
|
||||
Vst3PlugViewProxy::~Vst3PlugViewProxy() noexcept {FUNKNOWN_DTOR}
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor"
|
||||
IMPLEMENT_REFCOUNT(Vst3PlugViewProxy)
|
||||
IMPLEMENT_REFCOUNT(Vst3PlugViewProxy)
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
tresult PLUGIN_API Vst3PlugViewProxy::queryInterface(Steinberg::FIDString _iid,
|
||||
void** obj) {
|
||||
tresult PLUGIN_API Vst3PlugViewProxy::queryInterface(
|
||||
Steinberg::FIDString _iid,
|
||||
void** obj) {
|
||||
if (YaPlugView::supported()) {
|
||||
QUERY_INTERFACE(_iid, obj, Steinberg::FUnknown::iid,
|
||||
Steinberg::IPlugView)
|
||||
|
||||
@@ -27,17 +27,15 @@ Vst3PluginFactoryProxy::Vst3PluginFactoryProxy(ConstructArgs&& args) noexcept
|
||||
arguments_(std::move(args)){FUNKNOWN_CTOR}
|
||||
|
||||
// clang-format just doesn't understand these macros, I guess
|
||||
Vst3PluginFactoryProxy::~Vst3PluginFactoryProxy() noexcept {
|
||||
FUNKNOWN_DTOR
|
||||
}
|
||||
|
||||
Vst3PluginFactoryProxy::~Vst3PluginFactoryProxy() noexcept {FUNKNOWN_DTOR}
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor"
|
||||
IMPLEMENT_REFCOUNT(Vst3PluginFactoryProxy)
|
||||
IMPLEMENT_REFCOUNT(Vst3PluginFactoryProxy)
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
tresult PLUGIN_API
|
||||
Vst3PluginFactoryProxy::queryInterface(Steinberg::FIDString _iid, void** obj) {
|
||||
tresult PLUGIN_API Vst3PluginFactoryProxy::queryInterface(
|
||||
Steinberg::FIDString _iid,
|
||||
void** obj) {
|
||||
if (YaPluginFactory3::supports_plugin_factory()) {
|
||||
QUERY_INTERFACE(_iid, obj, Steinberg::FUnknown::iid,
|
||||
Steinberg::IPluginFactory)
|
||||
|
||||
@@ -77,17 +77,15 @@ Vst3PluginProxy::Vst3PluginProxy(ConstructArgs&& args) noexcept
|
||||
std::move(args.xml_representation_controller_args)),
|
||||
arguments_(std::move(args)){FUNKNOWN_CTOR}
|
||||
|
||||
Vst3PluginProxy::~Vst3PluginProxy() noexcept {
|
||||
FUNKNOWN_DTOR
|
||||
}
|
||||
|
||||
Vst3PluginProxy::~Vst3PluginProxy() noexcept {FUNKNOWN_DTOR}
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor"
|
||||
IMPLEMENT_REFCOUNT(Vst3PluginProxy)
|
||||
IMPLEMENT_REFCOUNT(Vst3PluginProxy)
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
tresult PLUGIN_API Vst3PluginProxy::queryInterface(Steinberg::FIDString _iid,
|
||||
void** obj) {
|
||||
tresult PLUGIN_API Vst3PluginProxy::queryInterface(
|
||||
Steinberg::FIDString _iid,
|
||||
void** obj) {
|
||||
if (YaPluginBase::supported()) {
|
||||
// We had to expand the macro here because we need to cast through
|
||||
// `YaPluginBase`, since `IpluginBase` is also a base of `IComponent`
|
||||
|
||||
Reference in New Issue
Block a user