mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Use the provided plugin instance
Some plugins call `audioMasterIOChanged` during their initialization when this is still a null pointer.
This commit is contained in:
@@ -350,13 +350,13 @@ class HostCallbackDataConverter : DefaultDataConverter {
|
|||||||
VstTimeInfo& time_info;
|
VstTimeInfo& time_info;
|
||||||
};
|
};
|
||||||
|
|
||||||
intptr_t PluginBridge::host_callback(AEffect* /*plugin*/,
|
intptr_t PluginBridge::host_callback(AEffect* effect,
|
||||||
int opcode,
|
int opcode,
|
||||||
int index,
|
int index,
|
||||||
intptr_t value,
|
intptr_t value,
|
||||||
void* data,
|
void* data,
|
||||||
float option) {
|
float option) {
|
||||||
HostCallbackDataConverter converter(plugin, editor, time_info);
|
HostCallbackDataConverter converter(effect, editor, time_info);
|
||||||
return send_event(vst_host_callback, host_callback_semaphore, converter,
|
return send_event(vst_host_callback, host_callback_semaphore, converter,
|
||||||
std::nullopt, opcode, index, value, data, option);
|
std::nullopt, opcode, index, value, data, option);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user