mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-13 20:09:59 +02:00
Add an updated version of the aeffectx.h header
From the Audacity project.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#include "communication.h"
|
||||
|
||||
intptr_t send_event(boost::asio::local::stream_protocol::socket& socket,
|
||||
int32_t opcode,
|
||||
int32_t index,
|
||||
int opcode,
|
||||
int index,
|
||||
intptr_t value,
|
||||
void* data,
|
||||
float option,
|
||||
|
||||
+10
-12
@@ -73,8 +73,8 @@ using InputAdapter = bitsery::InputBufferAdapter<B>;
|
||||
struct Event {
|
||||
using buffer_type = ArrayBuffer<max_string_length + 32>;
|
||||
|
||||
int32_t opcode;
|
||||
int32_t index;
|
||||
int opcode;
|
||||
int index;
|
||||
// TODO: This is an intptr_t, if we want to support 32 bit Wine plugins all
|
||||
// of these these intptr_t types should be replace by `uint64_t` to
|
||||
// remain compatible with the Linux VST plugin.
|
||||
@@ -133,7 +133,7 @@ struct EventResult {
|
||||
struct Parameter {
|
||||
using buffer_type = ArrayBuffer<16>;
|
||||
|
||||
int32_t index;
|
||||
int index;
|
||||
std::optional<float> value;
|
||||
|
||||
template <typename S>
|
||||
@@ -204,14 +204,12 @@ void serialize(S& s, AEffect& plugin) {
|
||||
s.value4b(plugin.numInputs);
|
||||
s.value4b(plugin.numOutputs);
|
||||
s.value4b(plugin.flags);
|
||||
|
||||
// These fields can contain some values that are rarely used and/or
|
||||
// deprecated, but we should pass them along anyway
|
||||
s.container1b(plugin.empty3);
|
||||
s.value4b(plugin.unknown_float);
|
||||
|
||||
s.value4b(plugin.initialDelay);
|
||||
s.value4b(plugin.empty3a);
|
||||
s.value4b(plugin.empty3b);
|
||||
s.value4b(plugin.unkown_float);
|
||||
s.value4b(plugin.uniqueID);
|
||||
s.container1b(plugin.unknown1);
|
||||
s.value4b(plugin.version);
|
||||
}
|
||||
|
||||
// I don't want to editor 'include/vestige/aeffectx.h`. That's why this type
|
||||
@@ -312,8 +310,8 @@ inline T read_object(Socket& socket) {
|
||||
* @relates passthrough_event
|
||||
*/
|
||||
intptr_t send_event(boost::asio::local::stream_protocol::socket& socket,
|
||||
int32_t opcode,
|
||||
int32_t index,
|
||||
int opcode,
|
||||
int index,
|
||||
intptr_t value,
|
||||
void* data,
|
||||
float option,
|
||||
|
||||
@@ -84,7 +84,7 @@ void Logger::log(const std::string& message) {
|
||||
*stream << formatted_message.str() << std::flush;
|
||||
}
|
||||
|
||||
void Logger::log_get_parameter(int32_t index) {
|
||||
void Logger::log_get_parameter(int index) {
|
||||
if (BOOST_UNLIKELY(verbosity >= Verbosity::events)) {
|
||||
std::ostringstream message;
|
||||
message << ">> getParameter() " << index;
|
||||
@@ -102,7 +102,7 @@ void Logger::log_get_parameter_response(float value) {
|
||||
}
|
||||
}
|
||||
|
||||
void Logger::log_set_parameter(int32_t index, float value) {
|
||||
void Logger::log_set_parameter(int index, float value) {
|
||||
if (BOOST_UNLIKELY(verbosity >= Verbosity::events)) {
|
||||
std::ostringstream message;
|
||||
message << ">> setParameter() " << index << " = " << value;
|
||||
@@ -118,8 +118,8 @@ void Logger::log_set_parameter_response() {
|
||||
}
|
||||
|
||||
void Logger::log_event(bool is_dispatch,
|
||||
int32_t opcode,
|
||||
int32_t index,
|
||||
int opcode,
|
||||
int index,
|
||||
intptr_t value,
|
||||
std::optional<std::string> payload,
|
||||
float option) {
|
||||
|
||||
@@ -83,15 +83,15 @@ class Logger {
|
||||
|
||||
// The following functions are for logging specific events, they are only
|
||||
// enabled for verbosity levels higher than 1 (i.e. `Verbosity::events`)
|
||||
void log_get_parameter(int32_t index);
|
||||
void log_get_parameter(int index);
|
||||
void log_get_parameter_response(float vlaue);
|
||||
void log_set_parameter(int32_t index, float value);
|
||||
void log_set_parameter(int index, float value);
|
||||
void log_set_parameter_response();
|
||||
// If is_dispatch is true, then use opcode names from the plugin's dispatch
|
||||
// function. Otherwise use names for the host callback function opcodes.
|
||||
void log_event(bool is_dispatch,
|
||||
int32_t opcode,
|
||||
int32_t index,
|
||||
int opcode,
|
||||
int index,
|
||||
intptr_t value,
|
||||
std::optional<std::string> payload,
|
||||
float option);
|
||||
|
||||
Reference in New Issue
Block a user