mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 04:20:13 +02:00
7ce42e4306
Not a lot of plugins use it, but it's really nice to have when they do.
57 lines
2.3 KiB
C++
57 lines
2.3 KiB
C++
// yabridge: a Wine VST bridge
|
|
// Copyright (C) 2020 Robbert van der Helm
|
|
//
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
#pragma once
|
|
|
|
// This file contains important opcodes and structs missing from
|
|
// `vestige/aeffectx.h`
|
|
|
|
// Glanced from https://www.kvraudio.com/forum/viewtopic.php?p=2744675#p2744675.
|
|
// These opcodes are used to retrieve names and specific properties for a
|
|
// plugin's inputs and outputs, if the plugin supports this. The index parameter
|
|
// is used to specify the index of the channel being queried, and the plugin
|
|
// gets passed an empty struct to describe the input/output through the data
|
|
// parameter. Finally the plugin returns a string containing the input or output
|
|
// name.
|
|
constexpr int effGetInputProperties = 33;
|
|
constexpr int effGetOutputProperties = 34;
|
|
|
|
// Found on
|
|
// https://github.com/falkTX/Carla/blob/07e876a743c5e15c358be170af2e523eadc7dbfa/source/utils/CarlaVstUtils.hpp#L75
|
|
// Used to assign names to MIDI keys, for some reason uses the `VstMidiKeyName`
|
|
// struct defined below rather than a simple string.
|
|
constexpr int effGetMidiKeyName = 66;
|
|
|
|
/**
|
|
* The struct that's being passed through the data parameter during the
|
|
* `effGetInputProperties` and `effGetOutputProperties` opcodes. Reverse
|
|
* engineered by attaching gdb to Bitwig. The actual fields are missing but for
|
|
* this application we don't need them.
|
|
*/
|
|
struct VstIOProperties {
|
|
char data[128];
|
|
};
|
|
|
|
/**
|
|
* The struct that's passed during `effGetMidiKeyName`. Will be used to write
|
|
* the name of a key to (i.e. the name of a sample for drum machines). Again,
|
|
* not sure about the exact contents of this struct, but at least the size is
|
|
* right!
|
|
*/
|
|
struct VstMidiKeyName {
|
|
char data[80];
|
|
};
|