Browse Source

Add debug prints for host context

Signed-off-by: falkTX <falktx@falktx.com>
pull/338/head
falkTX 4 years ago
parent
commit
b8f97e1c3f
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      distrho/src/DistrhoPluginVST3.cpp

+ 10
- 0
distrho/src/DistrhoPluginVST3.cpp View File

@@ -2628,6 +2628,8 @@ struct dpf_edit_controller : v3_edit_controller_cpp {
v3_host_application** host = nullptr;
v3_cpp_obj_query_interface(context, v3_host_application_iid, &host);

d_stdout("dpf_edit_controller::initialize => %p %p | host %p", self, context, host);

// save it for later so we can unref it
controller->hostContextFromInitialize = host;

@@ -2836,6 +2838,12 @@ struct dpf_edit_controller : v3_edit_controller_cpp {
PluginVst3* const vst3 = controller->vst3;
DISTRHO_SAFE_ASSERT_RETURN(vst3 != nullptr, nullptr);

d_stdout("dpf_edit_controller::create_view => %p %s | edit-ctrl %p, host %p, factory %p",
self, name,
controller->hostContextFromInitialize,
controller->hostContextFromComponent,
controller->hostContextFromFactory);

// we require a host context for message creation
v3_host_application** host = controller->hostContextFromInitialize != nullptr
? controller->hostContextFromInitialize
@@ -3352,6 +3360,8 @@ struct dpf_component : v3_component_cpp {
if (context != nullptr)
v3_cpp_obj_query_interface(context, v3_host_application_iid, &host);

d_stdout("dpf_component::initialize => %p %s | host %p", self, context, host);

// save it for later so we can unref it
component->hostContextFromInitialize = host;



Loading…
Cancel
Save