mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-06 19:40:10 +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;
|
||||
};
|
||||
|
||||
intptr_t PluginBridge::host_callback(AEffect* /*plugin*/,
|
||||
intptr_t PluginBridge::host_callback(AEffect* effect,
|
||||
int opcode,
|
||||
int index,
|
||||
intptr_t value,
|
||||
void* data,
|
||||
float option) {
|
||||
HostCallbackDataConverter converter(plugin, editor, time_info);
|
||||
HostCallbackDataConverter converter(effect, editor, time_info);
|
||||
return send_event(vst_host_callback, host_callback_semaphore, converter,
|
||||
std::nullopt, opcode, index, value, data, option);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user