MCPcopy Create free account
hub / github.com/DISTRHO/DPF / createMessage

Function createMessage

distrho/src/DistrhoPluginVST3.cpp:2983–2996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2981 // helper functions called during message passing, can block
2982
2983 v3_message** createMessage(const char* const id) const
2984 {
2985 DISTRHO_SAFE_ASSERT_RETURN(fHostApplication != nullptr, nullptr);
2986
2987 v3_tuid iid;
2988 memcpy(iid, v3_message_iid, sizeof(v3_tuid));
2989 v3_message** msg = nullptr;
2990 const v3_result res = v3_cpp_obj(fHostApplication)->create_instance(fHostApplication, iid, iid, (void**)&msg);
2991 DISTRHO_SAFE_ASSERT_INT_RETURN(res == V3_TRUE, res, nullptr);
2992 DISTRHO_SAFE_ASSERT_RETURN(msg != nullptr, nullptr);
2993
2994 v3_cpp_obj(msg)->set_message_id(msg, id);
2995 return msg;
2996 }
2997
2998 void sendParameterSetToUI(const v3_param_id rindex, const double value) const
2999 {

Callers 3

sendParameterSetToUIFunction · 0.70
sendStateSetToUIFunction · 0.70
sendReadyToUIFunction · 0.70

Calls 2

create_instanceMethod · 0.80
v3_cpp_objFunction · 0.50

Tested by

no test coverage detected