| 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 | { |
no test coverage detected