Finally implement eff{Set,Get}SpeakerConfiguration

As mentioned in #1. This also indirectly allows yabridge to work under
Renoise.
This commit is contained in:
Robbert van der Helm
2020-05-07 18:05:15 +02:00
parent 92f0d95357
commit 868b0fd357
6 changed files with 130 additions and 5 deletions
+11
View File
@@ -377,6 +377,11 @@ class HostCallbackDataConverter : DefaultDataConverter {
}
}
std::optional<EventPayload> read_value(const int opcode,
const intptr_t value) {
return DefaultDataConverter::read_value(opcode, value);
}
void write(const int opcode, void* data, const EventResult& response) {
switch (opcode) {
case audioMasterGetTime:
@@ -415,6 +420,12 @@ class HostCallbackDataConverter : DefaultDataConverter {
}
}
void write_value(const int opcode,
intptr_t value,
const EventResult& response) {
return DefaultDataConverter::write_value(opcode, value, response);
}
private:
AEffect* plugin;
std::optional<VstTimeInfo>& time_info;